Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

NX Open , .Net , Point3d

Status
Not open for further replies.

Vishu_18

Mechanical
Feb 1, 2021
6
My input is a point3d. I have a array of point3d and I want the nearest point among those points. Do I have any API or any other direct method of getting it, instead of checking distance with each point.
 
Replies continue below

Recommended for you

Just cycle through and measure the distance to each point. You can compare squared distances, instead of actual distances, which will avoid a square root calculation. I’d expect that you can cycle through millions of points per second; performance is not likely to be a big problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor