pub struct TriangleMesh {
pub name: String,
/* private fields */
}Expand description
A triangle mesh
Fields§
§name: StringImplementations§
Source§impl TriangleMesh
impl TriangleMesh
Sourcepub fn triangle_count(&self) -> usize
pub fn triangle_count(&self) -> usize
Count of triangles in the mesh
Sourcepub fn vertex_count(&self) -> usize
pub fn vertex_count(&self) -> usize
Count of vertices in the mesh
pub fn from_model( model: Model, material: Arc<dyn Material>, lighting_profile: Option<Arc<dyn Texture<Texel = RGBSpectrumf>>>, ) -> TriangleMesh
pub fn from_model_transformed( model: Model, transform: Matrix4f, material: Arc<dyn Material>, lighting_profile: Option<Arc<dyn Texture<Texel = RGBSpectrumf>>>, ) -> TriangleMesh
Trait Implementations§
Source§impl IntoIterator for TriangleMesh
impl IntoIterator for TriangleMesh
Source§type Item = TriangleInstance
type Item = TriangleInstance
The type of the elements being iterated over.
Source§type IntoIter = TriangleInstance
type IntoIter = TriangleInstance
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl Freeze for TriangleMesh
impl !RefUnwindSafe for TriangleMesh
impl Send for TriangleMesh
impl Sync for TriangleMesh
impl Unpin for TriangleMesh
impl !UnwindSafe for TriangleMesh
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more