Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Access to original points in 2D triangulation

Subject: CGAL users discussion list

List archive

[cgal-discuss] Access to original points in 2D triangulation


Chronological Thread 
  • From: Cai Zhenning <>
  • To:
  • Subject: [cgal-discuss] Access to original points in 2D triangulation
  • Date: Sun, 22 Feb 2009 12:46:28 +0800

Hi,

I'm new to CGAL and now I'm using Triangulation_2 to generate a
triangulation.

I wonder that if there is an efficient way to access to the points
before I insert them into triangulation. For example, if I write

Triangulation_2 t;
std::vector<Point_2> p;
// ...
t.insert(p.begin(), p.end());

How can I get the vertex in t that holds p.front()? I know t.locate will
do that, but I think it is an inefficient way if I want to locate all
points in p.

Thank you for your help.






Archive powered by MHonArc 2.6.16.

Top of Page