pub struct Rim {
pub vertices: Vec<u32>,
pub vector_area: Vector,
pub centre: Point,
pub flatness: f64,
pub closed: bool,
}Expand description
Where a mesh is open: a chain of edges each of which only one triangle uses.
Fields§
§vertices: Vec<u32>The vertices in the order the mesh’s triangles traverse the rim; the last joins the first where the rim is closed.
vector_area: VectorThe vector area of the face that would close the rim, wound the way the mesh is: the sum of area × normal over any surface spanning it, which is the same for every one. Its length is the opening’s area where the rim is planar, and it points out of the mesh through the opening, so it can vote as the face that would close it.
centre: PointThe rim’s centroid, by length.
flatness: f64The greatest distance of a rim vertex from the plane through the centre square to the vector area: zero for a planar rim.
closed: boolWhether the chain returns to where it started. A rim through a vertex where the triangles round it do not meet in one fan breaks there, and its vector area is the chain’s closed by its chord.
Trait Implementations§
impl StructuralPartialEq for Rim
Auto Trait Implementations§
impl Freeze for Rim
impl RefUnwindSafe for Rim
impl Send for Rim
impl Sync for Rim
impl Unpin for Rim
impl UnsafeUnpin for Rim
impl UnwindSafe for Rim
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
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>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.