Struct libfive::TriangleMesh[][src]

pub struct TriangleMesh<T: Point3> {
    pub positions: Vec<T>,
    pub triangles: Vec<[u32; 3]>,
}
Expand description

Triangle mesh.

The positions type is generic. You can use whatever type you like. Just implement the Point3 trait on it.

The triangles are a list of indices into the positions.

Fields

positions: Vec<T>triangles: Vec<[u32; 3]>

Trait Implementations

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.