Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] optimal_convex_partition_2 for polygons with holes?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] optimal_convex_partition_2 for polygons with holes?


Chronological Thread 
  • From: Mariette Yvinec <>
  • To:
  • Subject: Re: [cgal-discuss] optimal_convex_partition_2 for polygons with holes?
  • Date: Fri, 09 Feb 2007 13:57:43 +0100

Mariette Yvinec wrote:

Johan Van den Neste wrote:

It doesn't look like it is in the library, but how would I go about
producing a similar result? (doesn't need to be optimal)

thanks,

look at Partition_2 package

In fact Partition_2 will not solve your problem because it does not handle
polygons with holes.
You can solve your problem using a Constrained_Delaunay_triangulation_2.
Input the boundaries of your input polygons in a Constrained_Delaunay_triangulation_2.
Then visit all the triangulation edges and mark the edges that are not constrained edges
and can be discarded without giving reflex vertices in region of interest.
The remaining edges give you a convex decomposition with at most twice the optimal
number of parts.



Archive powered by MHonArc 2.6.16.

Top of Page