-
Hello, A couple of years ago, I did a R package for Delaunay and Voronoï tessellations. Now I'd like to implement the Voronoï tessellation dual to a 2D constrained Delaunay triangulation.
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
The class It does not compute anything, it only access combinatorial and geometric information of the primal graph and converts it on the fly to a Voronoi representation: for example, the Voronoi vertex As such, there shouldn't be anything that prevents using it with a CDT, but you probably need to define the adaptation helper classes (see concepts You can find some examples of implementations for different Delaunay graphs in the |
Beta Was this translation helpful? Give feedback.
-
I get it. But it remains to truncate the Voronoi edges that go outside the Delaunay triangulation... |
Beta Was this translation helpful? Give feedback.
-
I'm not sure this is a constrained Voronoï diagram... because the constraining edges are edges of the Delaunay triangulation here. Shouldn't they be edges of some Voronoï cells rather? This is my impression when I look at this picture: So I mean a constrained Voronoï diagram is not a Voronoï diagram of a constrained Delaunay triangulation... What do you think? Will see if I find a definition somewhere. |
Beta Was this translation helpful? Give feedback.
-
Hello, The full construction of the BVD is described in this paper and the main header is CGAL/Constrained_voronoi_diagram_2.h |
Beta Was this translation helpful? Give feedback.
The class
Voronoi_diagram_2
is a simple wrapper around a Delaunay triangulation.It does not compute anything, it only access combinatorial and geometric information of the primal graph and converts it on the fly to a Voronoi representation: for example, the Voronoi vertex
v1
adjacent to a Voronoi vertexv0
is the dual of the adjacent facef1
adjacent tof0
, the face dual ofv0
.As such, there shouldn't be anything that prevents using it with a CDT, but you probably need to define the adaptation helper classes (see concepts
AdaptationTraits_2
,AdaptationPolicy_2
).You can find some examples of implementations for different Delaunay graphs in the
include
directory of the Voronoi package (h…