pub struct CDT { /* private fields */ }
Expand description
The Constrained Delaunay triangulation state
Implementations§
Source§impl CDT
This holds the basic state of the constrained Delaunay triangulation
algorithm. Once the triangulation was kicked off the triangles are
returned and this no longer has a purpose.
impl CDT
This holds the basic state of the constrained Delaunay triangulation algorithm. Once the triangulation was kicked off the triangles are returned and this no longer has a purpose.
Sourcepub fn new(polygon: Polygon) -> CDT
pub fn new(polygon: Polygon) -> CDT
Creates a new constrained Delaunay triangulation from a polygon.
Sourcepub fn add_steiner_point(&mut self, x: f64, y: f64)
pub fn add_steiner_point(&mut self, x: f64, y: f64)
Adds a steiner point to the CDT.
Sourcepub fn triangulate(self) -> TriangleVec
pub fn triangulate(self) -> TriangleVec
Triangulates the polygon.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CDT
impl RefUnwindSafe for CDT
impl !Send for CDT
impl !Sync for CDT
impl Unpin for CDT
impl UnwindSafe for CDT
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