Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Constrained Delauny Triangulation

Subject: CGAL users discussion list

List archive

[cgal-discuss] Constrained Delauny Triangulation


Chronological Thread 
  • From: gerth <>
  • To:
  • Subject: [cgal-discuss] Constrained Delauny Triangulation
  • Date: Fri, 10 Aug 2012 01:48:40 -0700 (PDT)

Hi!
I have a problem using the constrained Delauny Triangulation in CGAL. So,
previously I tried to mesh a polygon with the Delaunay_mesher_2. I inserted
the vertices v1...vN of the polygon using
v1=cdt.insert(Point(x1,y1))
v2=cdt.insert(Point(x2,y2))
...........

and the constraints using
cdt.insert_constraint(v1, v2);
cdt.insert_constraint(v2, v3);
............

I set the mesh criteria and called refine_mesh() which yielded good results.
Now i want to insert additional constrained lines within the polygon.
Typically this constrained lines begin and end either on a vertex
(v1,...,vN) or somewhere on the constrained lines, that I already inserted.
The problem arises, if I try to insert a new vertex that lies on a
constraint edge. In this case I get an error

Unhandled exception at 0x00435d1e in gui.exe: 0xC0000005: Access violation
writing location 0x0000000c

What am I doing wrong? Is it even possible to insert a new vertex that lies
on a previously defined constrained edge?







--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Constrained-Delauny-Triangulation-tp4655688.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page