pub enum CpuGeometry {
Points(PointCloud),
Triangles(TriMesh),
}Expand description
A CPU-side version of a geometry.
Variants§
Implementations§
Source§impl Geometry
impl Geometry
Sourcepub fn compute_normals(&mut self)
pub fn compute_normals(&mut self)
Computes normals if it is relevant for the geometry.
Sourcepub fn compute_tangents(&mut self)
pub fn compute_tangents(&mut self)
Computes tangents if it is relevant for the geometry.
Sourcepub fn compute_aabb(&mut self) -> AxisAlignedBoundingBox
pub fn compute_aabb(&mut self) -> AxisAlignedBoundingBox
Computes the AxisAlignedBoundingBox for this geometry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin 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