Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Given a set of input 3D cartesian point positions find the closest to a single 'target' position?
Chronological Thread
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Given a set of input 3D cartesian point positions find the closest to a single 'target' position?
- Date: Thu, 21 Mar 2013 17:38:35 +0100
- Organization: GeometryFactory
Have a look at the second example here:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Spatial_searching/Chapter_main.html#Subsection_61.3.6
Sebastien.
On 03/21/2013 04:44 PM, Julian wrote:
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
- [cgal-discuss] Given a set of input 3D cartesian point positions find the closest to a single 'target' position?, Julian, 03/21/2013
- Re: [cgal-discuss] Given a set of input 3D cartesian point positions find the closest to a single 'target' position?, Sebastien Loriot (GeometryFactory), 03/21/2013
Archive powered by MHonArc 2.6.18.