pub struct MeshQuality {
pub aspect_ratio: f64,
pub min_angle_deg: f64,
pub max_angle_deg: f64,
pub skewness: f64,
pub jacobian: f64,
}Expand description
Quality metrics for a single mesh element (triangle or tetrahedron).
Fields§
§aspect_ratio: f64Aspect ratio: ratio of longest to shortest edge (≥ 1, ideal = 1).
min_angle_deg: f64Minimum interior angle in degrees.
max_angle_deg: f64Maximum interior angle in degrees.
skewness: f64Skewness in [0, 1]; 0 = perfect, 1 = degenerate.
jacobian: f64Scaled Jacobian determinant in [-1, 1]; ideal equilateral = 1.
Implementations§
Source§impl MeshQuality
impl MeshQuality
Sourcepub fn is_acceptable(&self) -> bool
pub fn is_acceptable(&self) -> bool
Returns true if the element is considered acceptable quality.
Criteria: aspect_ratio < 5, skewness < 0.9, min_angle_deg > 5°.
Sourcepub fn is_degenerate(&self) -> bool
pub fn is_degenerate(&self) -> bool
Returns true if the element is degenerate (zero or near-zero volume).
Trait Implementations§
Source§impl Clone for MeshQuality
impl Clone for MeshQuality
Source§fn clone(&self) -> MeshQuality
fn clone(&self) -> MeshQuality
Returns a duplicate 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 MeshQuality
impl Debug for MeshQuality
Source§impl PartialEq for MeshQuality
impl PartialEq for MeshQuality
impl StructuralPartialEq for MeshQuality
Auto Trait Implementations§
impl Freeze for MeshQuality
impl RefUnwindSafe for MeshQuality
impl Send for MeshQuality
impl Sync for MeshQuality
impl Unpin for MeshQuality
impl UnsafeUnpin for MeshQuality
impl UnwindSafe for MeshQuality
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.