pub struct SubMeshTriangles { /* private fields */ }Expand description
One submesh’s list of index tuples (module docs): the whole triangles, then at most one tuple a triangle list’s buffer cut short, then empty tuples.
Implementations§
Source§impl SubMeshTriangles
impl SubMeshTriangles
Sourcepub fn from_triangles(triangles: MeteredVec<[u32; 3]>) -> Self
pub fn from_triangles(triangles: MeteredVec<[u32; 3]>) -> Self
Takes ownership of an already charged list of complete triangles.
Sourcepub fn cut(&self) -> &[u32]
pub fn cut(&self) -> &[u32]
The tuple of one or two indices after them, where a triangle list’s slice met the buffer’s end; empty if there is none.
Sourcepub fn empty(&self) -> u64
pub fn empty(&self) -> u64
How many empty tuples end the list (a triangle list’s slices past the buffer’s end).
Sourcepub fn index_count(&self) -> u64
pub fn index_count(&self) -> u64
The submesh’s indexCount after the call: a strip’s is three per
triangle kept, any other’s is unchanged.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SubMeshTriangles
impl !UnwindSafe for SubMeshTriangles
impl Forget for SubMeshTriangles
impl Freeze for SubMeshTriangles
impl Move for SubMeshTriangles
impl Send for SubMeshTriangles
impl Sync for SubMeshTriangles
impl Unpin for SubMeshTriangles
impl UnsafeUnpin for SubMeshTriangles
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