Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Feb 1, 2021
Messages
6
Location
IN
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.
 
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

Back
Top