Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Spatial search in Arrangement

Subject: CGAL users discussion list

List archive

[cgal-discuss] Spatial search in Arrangement


Chronological Thread 
  • From: nojhan <>
  • To:
  • Subject: [cgal-discuss] Spatial search in Arrangement
  • Date: Mon, 3 Feb 2014 05:56:44 -0800 (PST)

I failed to find an elegant way to call a spatial search on an Arrangement. My current approach is to copy all the points that are related to the vertices of the arrangement into a new container, and perform the search on it.
// something like that:
Vector arr_vertices;
for( auto EACH_VERTICES(iv, arr) ) {
  arr_vertices.push_back( iv->point() );
}
Tree tree( ITEMS(arr_vertices) );
NN_incremental_search search( tree, query );
Would it be possible to have an interface in the spatial search that would directly use a point method instead of the Point instance? This would avoid the need to copy the arrangement vertices.

View this message in context: Spatial search in Arrangement
Sent from the cgal-discuss mailing list archive at Nabble.com.


  • [cgal-discuss] Spatial search in Arrangement, nojhan, 02/03/2014

Archive powered by MHonArc 2.6.18.

Top of Page