Struct libfive::FlatTriangleMesh[][src]

pub struct FlatTriangleMesh {
    pub positions: Vec<f32>,
    pub triangles: Vec<u32>,
}
Expand description

Flat triangle mesh.

The positions list has layout [x0, y0, z0, x1, y1, z1, ...].

The triangles list has layout [t0.v0, t0.v1, t0.v2, t1.v0, t1.v1, t1.v2, ...] where tn is triangle n and vm is vertex index m.

Fields

positions: Vec<f32>triangles: Vec<u32>

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.