Struct vdtfont::delaunay::DelaunayFactory
source · pub struct DelaunayFactory { /* private fields */ }
Expand description
A factory for constructing Delaunay
.
Delaunay
is computated based on VoronoiImage
.
A full algorithm of triangulation is described in the paper “Computing Two-dimensional Delaunay Triangulation Using Graphics Hardware”
Implementations§
source§impl DelaunayFactory
impl DelaunayFactory
sourcepub fn new(queue: Queue) -> Result<Self>
pub fn new(queue: Queue) -> Result<Self>
Creates a new DelaunayFactory
.
sourcepub fn construct(
&mut self,
voronoi_image: &VoronoiImage<'_>
) -> Result<Delaunay>
pub fn construct( &mut self, voronoi_image: &VoronoiImage<'_> ) -> Result<Delaunay>
Constructs a new Delaunay
.
Delaunay
is computated based on the given VoronoiImage
.
A full algorithm of triangulation is described in this paper.
Auto Trait Implementations§
impl !RefUnwindSafe for DelaunayFactory
impl Send for DelaunayFactory
impl !Sync for DelaunayFactory
impl Unpin for DelaunayFactory
impl UnwindSafe for DelaunayFactory
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