pub struct MeshMeasure;Expand description
Reference mass-property provider for triangle meshes.
Deterministic: the sums run in triangle order, so the result is reproducible for a given mesh.
Trait Implementations§
Source§impl Clone for MeshMeasure
impl Clone for MeshMeasure
Source§fn clone(&self) -> MeshMeasure
fn clone(&self) -> MeshMeasure
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeshMeasure
impl Debug for MeshMeasure
Source§impl Default for MeshMeasure
impl Default for MeshMeasure
Source§fn default() -> MeshMeasure
fn default() -> MeshMeasure
Returns the “default value” for a type. Read more
Source§impl Measure<TriMesh> for MeshMeasure
impl Measure<TriMesh> for MeshMeasure
Source§fn measure(
&self,
value: &TriMesh,
tolerance: Tolerance,
) -> Result<MassProperties, Self::Error>
fn measure( &self, value: &TriMesh, tolerance: Tolerance, ) -> Result<MassProperties, Self::Error>
Area, signed volume, volume centroid and second moments in one pass.
The centroid reported is the VOLUME centroid, not the area centroid:
for mass properties of a solid that is the meaningful one, and
surface_properties still exposes the area centroid separately for
callers measuring a shell.
Source§type Error = MeshMeasureError
type Error = MeshMeasureError
Structured failure (open shell, self intersection, unsupported shape).
impl Copy for MeshMeasure
Auto Trait Implementations§
impl Freeze for MeshMeasure
impl RefUnwindSafe for MeshMeasure
impl Send for MeshMeasure
impl Sync for MeshMeasure
impl Unpin for MeshMeasure
impl UnwindSafe for MeshMeasure
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