Struct MeshMeasure
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§
§impl Clone for MeshMeasure
impl Clone for MeshMeasure
§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 more§impl Debug for MeshMeasure
impl Debug for MeshMeasure
§impl Default for MeshMeasure
impl Default for MeshMeasure
§fn default() -> MeshMeasure
fn default() -> MeshMeasure
Returns the “default value” for a type. Read more
§impl Measure<TriMesh> for MeshMeasure
impl Measure<TriMesh> for MeshMeasure
§fn measure(
&self,
value: &TriMesh,
tolerance: Tolerance,
) -> Result<MassProperties, <MeshMeasure as Measure<TriMesh>>::Error>
fn measure( &self, value: &TriMesh, tolerance: Tolerance, ) -> Result<MassProperties, <MeshMeasure as Measure<TriMesh>>::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.
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more