#[non_exhaustive]pub struct SteinerPoint {
pub seam: [u32; 2],
pub toward: u32,
pub halvings: u32,
}Expand description
A point triangulate_shell_face adds inside a face, as a chain of
midpoints of the face’s own points (#283): the midpoint m of the
seam from seam[0] to seam[1], then halvings times the midpoint
of m and the point so far, starting from toward.
A caller that lifts the face back into space places the point with the
same chain over its own points (Self::place). On a face lying in an
axis plane, the midpoint of two points with that coordinate in common
keeps it exactly, so the point lies exactly in the plane; elsewhere it
lies within the rounding of the chain.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.seam: [u32; 2]The seam’s two ends, by index into
ShellFaceTriangulation::points.
toward: u32The point the seam’s midpoint is moved towards: a corner of one of the seam’s two triangles, possibly an earlier Steiner point.
halvings: u32How often the point is moved half way, at least once.
Implementations§
Trait Implementations§
Source§impl Clone for SteinerPoint
impl Clone for SteinerPoint
Source§fn clone(&self) -> SteinerPoint
fn clone(&self) -> SteinerPoint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SteinerPoint
Source§impl Debug for SteinerPoint
impl Debug for SteinerPoint
impl Eq for SteinerPoint
Source§impl Hash for SteinerPoint
impl Hash for SteinerPoint
Source§impl PartialEq for SteinerPoint
impl PartialEq for SteinerPoint
impl StructuralPartialEq for SteinerPoint
Auto Trait Implementations§
impl Freeze for SteinerPoint
impl RefUnwindSafe for SteinerPoint
impl Send for SteinerPoint
impl Sync for SteinerPoint
impl Unpin for SteinerPoint
impl UnsafeUnpin for SteinerPoint
impl UnwindSafe for SteinerPoint
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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