Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Retrieving cgal voronoi diagram connected components
- Date: Tue, 12 Jul 2016 16:31:11 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:gvCQjRDcxyyrxPf03R8UUyQJP3N1i/DPJgcQr6AfoPdwSP7+r8bcNUDSrc9gkEXOFd2CrakV06yN7Ou/BSQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd+KyZ/onL/us7ToICxwzAKnZr1zKBjk5S7wjeIxxbVYF6Aq1xHSqWFJcekFjUlhJFaUggqurpzopM0roGxsvKcq+MdEFKn7ZK8lVqdwDTI8Mmlz6te4mwPESF7F3XYWW34KkxdOSyzC9hD9Qt+xnSb9s+dhwji0NMbqSqolGH7qu7xvTwXpjztBMjoR/2Tei8g2h6Ve9kHy7ydjypLZNdnGfMF1ebnQKIsX
- Organization: GeometryFactory
Maybe this is doing what you want:
https://github.com/sloriot/cgal-voronoi-cropping
Given a set of points and a bounding box, you get a HDS
containing the Voronoi diagram of your input points
cropped to the bounding box.
See the example:
https://github.com/sloriot/cgal-voronoi-cropping/blob/master/test/main.cpp
HTH,
Sebastien.
On 07/12/2016 04:01 PM, Pol Monsó Purtí wrote:
I'd like to retrieve the polygons made of the voronoi bissectors or, at
least, the bounding box of each voronoi region. That is, extracting the
connected components of a voronoi diagram.
I'm struggling to see which of the iterators is appropriate and wether
the funcionality is already in cgal's voronoi diagram.
Another way of seeing it is retrieving it all the voronoi vertices that
concern each site, with their order for the polygon or without for the
bounding box.
I am not sure which iterator to use or if there's one that already
circulates around the voronoi vertices of a site. I couldn't find it
from the documentation.
The diagram is in 2D.
My definitions:
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Projection_traits_xy_3<K> Gt;
[...]
//cgalvoronoi
typedef CGAL::Delaunay_triangulation_2<Gt>
DT;
typedef CGAL::Delaunay_triangulation_adaptation_traits_2<DT>
AT;
typedef CGAL::Delaunay_triangulation_caching_degeneracy_removal_policy_2<DT>
AP;
typedef CGAL::Voronoi_diagram_2<DT,AT,AP>
VD;
- [cgal-discuss] Retrieving cgal voronoi diagram connected components, Pol Monsó Purtí, 07/12/2016
- Re: [cgal-discuss] Retrieving cgal voronoi diagram connected components, Sebastien Loriot (GeometryFactory), 07/12/2016
- Re: [cgal-discuss] Retrieving cgal voronoi diagram connected components, Pol Monsó Purtí, 07/12/2016
- Re: [cgal-discuss] Retrieving cgal voronoi diagram connected components, Pol Monsó Purtí, 07/12/2016
- Re: [cgal-discuss] Retrieving cgal voronoi diagram connected components, Pol Monsó Purtí, 07/12/2016
- Re: [cgal-discuss] Retrieving cgal voronoi diagram connected components, Sebastien Loriot (GeometryFactory), 07/12/2016
Archive powered by MHonArc 2.6.18.