pub struct MesherOutput {
pub opaque_mesh: Mesh,
pub transparent_mesh: Mesh,
pub atlas: TextureAtlas,
pub bounds: BoundingBox,
}Expand description
Output from the mesher.
Fields§
§opaque_mesh: MeshThe opaque geometry mesh (rendered first).
transparent_mesh: MeshThe transparent geometry mesh (rendered second).
atlas: TextureAtlasThe texture atlas.
bounds: BoundingBoxBounding box of the mesh.
Implementations§
Source§impl MesherOutput
impl MesherOutput
Sourcepub fn mesh(&self) -> Mesh
pub fn mesh(&self) -> Mesh
Get a combined mesh (for backwards compatibility). Note: For correct transparency, use opaque_mesh and transparent_mesh separately.
Sourcepub fn has_transparency(&self) -> bool
pub fn has_transparency(&self) -> bool
Check if the output has any transparent geometry.
Sourcepub fn total_vertices(&self) -> usize
pub fn total_vertices(&self) -> usize
Get total vertex count across both meshes.
Sourcepub fn total_triangles(&self) -> usize
pub fn total_triangles(&self) -> usize
Get total triangle count across both meshes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MesherOutput
impl RefUnwindSafe for MesherOutput
impl Send for MesherOutput
impl Sync for MesherOutput
impl Unpin for MesherOutput
impl UnwindSafe for MesherOutput
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