pub struct MeshRegion {
pub id: RegionId,
pub triangles: Vec<usize>,
pub surface: Option<Canonical>,
pub deviation: Option<f64>,
pub neighbours: Vec<RegionId>,
}Expand description
One region as found: its triangles, the surface they are built on, and the regions beside it.
Fields§
§id: RegionIdIts name.
triangles: Vec<usize>Its triangles, indices into MeshRegions::triangles, ascending.
surface: Option<Canonical>The surface its face is built on: a plane, a recognized curved
surface, or a fitted sweep or patch (Canonical::Swept). None
for a region with no surface, whose triangles are built as planar
facets.
deviation: Option<f64>The worst distance from any of its vertices to the surface,
measured; None with no surface.
neighbours: Vec<RegionId>The regions sharing a mesh edge with it, ascending.
Trait Implementations§
Source§impl Clone for MeshRegion
impl Clone for MeshRegion
Source§impl Debug for MeshRegion
impl Debug for MeshRegion
Source§impl PartialEq for MeshRegion
impl PartialEq for MeshRegion
impl StructuralPartialEq for MeshRegion
Auto Trait Implementations§
impl Freeze for MeshRegion
impl RefUnwindSafe for MeshRegion
impl Send for MeshRegion
impl Sync for MeshRegion
impl Unpin for MeshRegion
impl UnsafeUnpin for MeshRegion
impl UnwindSafe for MeshRegion
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,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.