pub enum Geometry {
PointCloud(PointCloud),
Mesh(Mesh),
}Expand description
Geometry returned by readers. Formats like PLY/OBJ can be either a point cloud or mesh depending on whether face data is present.
Variants§
PointCloud(PointCloud)
Mesh(Mesh)
Implementations§
Source§impl Geometry
impl Geometry
pub fn point_count(&self) -> usize
pub fn face_count(&self) -> usize
pub fn metadata(&self) -> &Metadata
pub fn metadata_mut(&mut self) -> &mut Metadata
Trait Implementations§
impl StructuralPartialEq for Geometry
Auto Trait Implementations§
impl Freeze for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnsafeUnpin for Geometry
impl UnwindSafe for Geometry
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