[][src]Struct transvoxel_data::regular_cell_data::RegularCellData

pub struct RegularCellData {
    pub vertex_index: [u8; 15],
    // some fields omitted
}

Holds information about the triangulation used for a single equivalence class in the modified Marching Cubes algorithm.

Fields

vertex_index: [u8; 15]

Groups of 3 indices giving the triangulation.

A value of !0 is used for padding the array.

Methods

impl RegularCellData[src]

pub fn get_vertex_count(&self) -> u8[src]

Gets the vertex count from RegularCellData::geometry_counts.

pub fn get_triangle_count(&self) -> u8[src]

Gets the triangle count from RegularCellData::geometry_counts.

Trait Implementations

impl Clone for RegularCellData[src]

impl Copy for RegularCellData[src]

impl Debug for RegularCellData[src]

impl Eq for RegularCellData[src]

impl PartialEq<RegularCellData> for RegularCellData[src]

impl StructuralEq for RegularCellData[src]

impl StructuralPartialEq for RegularCellData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.