Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Check which mesh element is inside the original polygons

Subject: CGAL users discussion list

List archive

[cgal-discuss] Check which mesh element is inside the original polygons


Chronological Thread 
  • From: Graviton <>
  • To:
  • Subject: [cgal-discuss] Check which mesh element is inside the original polygons
  • Date: Mon, 5 Dec 2011 23:01:05 -0800 (PST)

I have a set of non-overlapping polygons. These polygons can share nodes,
edges, but strictly no overlapping.

Now, I am going to mesh them using Constrainted Delaunay Triangulation (CDT)
technique. I can get the mesh without problem.

My problem is, after the mesh, I want to know which mesh element belongs to
which original polygon. MY current approach is to compute the centroid for
each mesh element, and check which of the original polygon this centroid
falls into. But I don't like this approach as it is very computationally
intensive.

Is there any efficient ways to do this ( in terms of Big O the runtime)? My
projects involve tens of thousands of polygons and I don't want the speed to
slow down.

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Check-which-mesh-element-is-inside-the-original-polygons-tp4163729p4163729.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page