Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Triangulate polygon with holes

Subject: CGAL users discussion list

List archive

[cgal-discuss] Triangulate polygon with holes


Chronological Thread 
  • From: Agnel C J Kurian <>
  • To:
  • Subject: [cgal-discuss] Triangulate polygon with holes
  • Date: Wed, 10 Feb 2010 20:53:30 +0100 (CET)

I am using Constrained_triangulation_2 to triangulate a polygon with holes in
it. I am adding the external boundary and the boundary of the holes as
constraints.

How do I then exclude the faces/edges which fall within the holes?

A solution was suggested here:
http://stackoverflow.com/questions/406301/406647#406647 (However, I have not
been able to act on it till now.)

"You can then tag the triangles of the triangulation by any traversal
algorithm: start with a triangle incident to the infinite vertex and tag it as
being outside, and each time you cross a constraint, switch to the opposite
tag
(inside if you were previously tagging the triangles as outsider, outside if
you were tagging triangles as insider before)."

How do I check when I cross a constraint? How do I tag a triangle?



Archive powered by MHonArc 2.6.16.

Top of Page