pub struct Triangulation { /* private fields */ }Expand description
A planar triangulation over a point set, honouring constraint edges.
Implementations§
Source§impl Triangulation
impl Triangulation
Sourcepub fn triangles(&self) -> &[u32]
pub fn triangles(&self) -> &[u32]
The triangle list, three counter-clockwise vertex indices each.
Sourcepub fn points(&self) -> &[Point2] ⓘ
pub fn points(&self) -> &[Point2] ⓘ
The vertex positions, including any Steiner points appended by refinement.
Sourcepub fn triangle_count(&self) -> usize
pub fn triangle_count(&self) -> usize
Number of triangles.
Sourcepub fn constraints(&self) -> &[Constraint]
pub fn constraints(&self) -> &[Constraint]
The constraint edges this triangulation was built to honour.
Trait Implementations§
Source§impl Clone for Triangulation
impl Clone for Triangulation
Source§fn clone(&self) -> Triangulation
fn clone(&self) -> Triangulation
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 moreAuto Trait Implementations§
impl Freeze for Triangulation
impl RefUnwindSafe for Triangulation
impl Send for Triangulation
impl Sync for Triangulation
impl Unpin for Triangulation
impl UnwindSafe for Triangulation
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