pub struct TriangleMesh {
Show 13 fields pub n_triangles: u32, pub vertex_indices: Vec<u32>, pub n_vertices: u32, pub p: Vec<Point3f>, pub n: Vec<Normal3f>, pub s: Vec<Vector3f>, pub uv: Vec<Point2f>, pub alpha_mask: Option<Arc<dyn Texture<Float> + Send + Sync>>, pub shadow_alpha_mask: Option<Arc<dyn Texture<Float> + Send + Sync>>, pub object_to_world: Transform, pub world_to_object: Transform, pub reverse_orientation: bool, pub transform_swaps_handedness: bool,
}

Fields

n_triangles: u32

the total number of triangles in the mesh

vertex_indices: Vec<u32>

vector of vertex indices

n_vertices: u32

the total number of vertices in the mesh

p: Vec<Point3f>

vector of n_vertices vertex positions

n: Vec<Normal3f>

an optional vector of normal vectors (can be empty)

s: Vec<Vector3f>

an optional vector of tangent vectors (can be empty)

uv: Vec<Point2f>

an optional vector of paramtric (u, v) values (texture coordinates)

alpha_mask: Option<Arc<dyn Texture<Float> + Send + Sync>>shadow_alpha_mask: Option<Arc<dyn Texture<Float> + Send + Sync>>object_to_world: Transformworld_to_object: Transformreverse_orientation: booltransform_swaps_handedness: bool

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.