Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] dD Spatial Searching using arbitrary keys

Subject: CGAL users discussion list

List archive

[cgal-discuss] dD Spatial Searching using arbitrary keys


Chronological Thread 
  • From: "developer" <>
  • To:
  • Subject: [cgal-discuss] dD Spatial Searching using arbitrary keys
  • Date: Mon, 09 May 2016 18:03:33 -0500
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:wR8sHRTcat5LdeA+Hq7EjieQ+tpsv+yvbD5Q0YIujvd0So/mwa65ZBaN2/xhgRfzUJnB7Loc0qyN4/GmADdLuMbJmUtBWaIPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3BPAZ4bt74BpTVx5zukbviqtuKOE4R1HKUWvBbElaflU3prM4YgI9veO4a6yDihT92QdlQ3n5iPlmJnhzxtY+a9Z9n9DlM6bp6r5YTGZPTJfVlCOQIRHR7ayFmrPHs4BLMRA/K6noHWXgNiTJJBRLE5Vf0RMTLvzP+p9Z6jWOWMNP7SbcsVC7op/NnRQHljCAfOiQR7Gzcis12kKlc5hmmokos7ZTTZdTfOPdgc6faZd4ADyIVUstPWihGGo6mR5cCBOoAO/pTqM/2oF5Y/kj2PhWlGO66kmwAvXTxx6Bvjrws

I am attempting to use the dD spatial searching module using the example code
in section 3.6.3 (v4.8) as a starting point:
http://doc.cgal.org/latest/Spatial_searching/Spatial_searching_2searching_with_point_with_info_pmap_8cpp-example.html

The data set I'm working with has point ID's (the map key) that do not start
at zero and are not continuous. However the K_neighbor_search function
outputs incorrect results for a std::map with integer keys that non
continuous and/or do not start at zero.

How can I use arbitrary integer keys with the K_neighbor_search function? Is
the only way to create two maps, one with continuous keys for use in the
K_neighbor_search and a second to act as a lookup table for the actual point
ID's?

Thanks,
Michael



Archive powered by MHonArc 2.6.18.

Top of Page