pub struct Triangles { /* private fields */ }Expand description
get_triangles()’s list: one SubMeshTriangles per submesh.
Implementations§
Source§impl Triangles
impl Triangles
Sourcepub fn from_submeshes(submeshes: MeteredVec<SubMeshTriangles>) -> Self
pub fn from_submeshes(submeshes: MeteredVec<SubMeshTriangles>) -> Self
Takes ownership of already charged submeshes from an API adapter.
Sourcepub fn empty(meter: &Arc<Meter>) -> Self
pub fn empty(meter: &Arc<Meter>) -> Self
No triangle evaluation, for exporters that return before faces when positions are absent. Allocates nothing; retains the caller’s meter.
Sourcepub fn submeshes(&self) -> &[SubMeshTriangles]
pub fn submeshes(&self) -> &[SubMeshTriangles]
Each submesh’s triangles, in the source’s order.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Triangles
impl !UnwindSafe for Triangles
impl Forget for Triangles
impl Freeze for Triangles
impl Move for Triangles
impl Send for Triangles
impl Sync for Triangles
impl Unpin for Triangles
impl UnsafeUnpin for Triangles
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