Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] bad triangles in 2D Delaunay triangulation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] bad triangles in 2D Delaunay triangulation


Chronological Thread 
  • From: Marius Kintel <>
  • To:
  • Subject: Re: [cgal-discuss] bad triangles in 2D Delaunay triangulation
  • Date: Mon, 1 Dec 2014 09:55:14 -0500


On Dec 1, 2014, at 08:49 AM, artem blonskii <> wrote:

Hi everyone!
I'm trying to build a triangulation of 2D figure. But it fails for some
figures, because bad triangles are produced. These triangles are built by
points which lie at the one line. I identify these triangles by the area. 

Does anybody know how to fix it? 

If you just want to triangulate, you don’t need to use a Mesher.
You can request a valid triangulation directly from the CDT. If you need to support concave input (or even input with holes), you can walk your boundary and tag what’s inside/outside.

For an example of how I do it, see tessellatePolygon() or tessellatePolygonWithHoles() here:
https://github.com/openscad/openscad/blob/master/src/cgalutils-tess.cc

 -Marius




Archive powered by MHonArc 2.6.18.

Top of Page