Try PointcloudGeometry.SetupPointLocationQueries() with search method set to 
closest vertex/knot.  If it doesn't crash or throw errors, you're in business 
using the regular GetClosestLocations() method.


Matt




From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Bradley Gabe
Sent: Tuesday, May 01, 2012 11:49 AM
To: softimage@listproc.autodesk.com
Subject: Re: Scripting: Closest Point On a Point Cloud?

I'm not finding that anywhere in the docs, is that available for Point Cloud 
Geometry?
On Tue, May 1, 2012 at 2:44 PM, Matt Lind 
<ml...@carbinestudios.com<mailto:ml...@carbinestudios.com>> wrote:
Can you use GetClosestVertex()?


Matt



From: 
softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com>
 
[mailto:softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com>]
 On Behalf Of Bradley Gabe
Sent: Tuesday, May 01, 2012 11:42 AM
To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com>
Subject: Scripting: Closest Point On a Point Cloud?

For a current tool, I need to get the closest point ID in a particle cloud to a 
global position.
I'm familiar with using Geometry.GetClosestLocations(pos) which would 
accomplish this if I were targeting a polygon mesh. Is there an analogue that 
would work for a Point Cloud?

I do have another trick I can use to solve the problem, but I was hoping for 
something that performed a tad faster. If there is no more direct solution, 
I'll explain my approach.

-Bradley



Reply via email to