Struct delaunator::Triangulation
source · pub struct Triangulation {
pub triangles: Vec<usize>,
pub halfedges: Vec<usize>,
pub hull: Vec<usize>,
}
Expand description
Result of the Delaunay triangulation.
Fields§
§triangles: Vec<usize>
A vector of point indices where each triple represents a Delaunay triangle. All triangles are directed counter-clockwise.
halfedges: Vec<usize>
A vector of adjacent halfedge indices that allows traversing the triangulation graph.
i
-th half-edge in the array corresponds to vertex triangles[i]
the half-edge is coming from. halfedges[i]
is the index of a twin half-edge
in an adjacent triangle (or EMPTY
for outer half-edges on the convex hull).
hull: Vec<usize>
A vector of indices that reference points on the convex hull of the triangulation, counter-clockwise.
Implementations§
Auto 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