Enum three_d_asset::geometry::Geometry
source · pub enum Geometry {
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§
source§impl<'de> Deserialize<'de> for Geometry
impl<'de> Deserialize<'de> for Geometry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
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