Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Constrained Delauny Triangulation


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Constrained Delauny Triangulation
  • Date: Fri, 10 Aug 2012 11:14:53 +0200
  • Organization: GeometryFactory

Le vendredi 10 août 2012 01:48:40 gerth a écrit :
> 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?

Can you give us a small but complete code that shows the error?

By the way, what kernel do you use? It must be a kernel with exact predicates.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.18.

Top of Page