Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Given a set of input 3D cartesian point positions find the closest to a single 'target' position?

Subject: CGAL users discussion list

List archive

[cgal-discuss] Given a set of input 3D cartesian point positions find the closest to a single 'target' position?


Chronological Thread 
  • From: Julian <>
  • To:
  • Subject: [cgal-discuss] Given a set of input 3D cartesian point positions find the closest to a single 'target' position?
  • Date: Thu, 21 Mar 2013 15:44:50 +0000

I'm trying to find an example of an algorithm in CGAL that will accept a large set of 3D point positions (circa 1m) distributed randomly in space and, given a single input position, find the nearest point position in the set to that input position. I think it should be one of the 'nearest neighbor' searches (particularly in Section 61.3.5 of the manual) but I can't quite work out how to return the point position itself as well as the actual distance. Or, if not the point position, the index of the input point. Is this possible?

Thanks,
Julian



Archive powered by MHonArc 2.6.18.

Top of Page