Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Removing all constraints from a constrained_triangulation_plus_2

Subject: CGAL users discussion list

List archive

[cgal-discuss] Removing all constraints from a constrained_triangulation_plus_2


Chronological Thread 
  • From: mriem <>
  • To:
  • Subject: [cgal-discuss] Removing all constraints from a constrained_triangulation_plus_2
  • Date: Fri, 13 Jan 2012 08:08:19 -0800 (PST)

Hello

I am new to cgal.

I am using a Constrained_triangulation_plus_2 to generate a mesh

The problem is that I want my triangulation to evolve over time, i.e., it
must be dynamic.

So at a given time t, I must input some constraints, and I do it like this

typedef CGAL::Constrained_Delaunay_triangulation_2<K, TDS, Itag>
DelaunayCDT;
typedef CGAL::Constrained_triangulation_plus_2<DelaunayCDT> CDT;
CDT dt;

Vertex_handle va = dt.insert(Point_2(x1, y1);
Vertex_handle1 vb = dt.insert(Point_2(pc_local.points.at(i).x,
pc_local.points.at(i). y));
dt.insert_constraint(va, vb);

And I do this in a for cycle to insert several constraints.
The problem is that at iteration t+1, I need to remove all the constraints I
inserted at iteration t.

How can I do this?

I could not find any method like clear_constraints()

Thanks for the help

Miguel

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Removing-all-constraints-from-a-constrained-triangulation-plus-2-tp4292611p4292611.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page