Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NXOpen: Determine Point at Minimum Distance between 2 Solid Body to identify MultipleTouching Faces?

Status
Not open for further replies.

biw01

Automotive
Dec 31, 2011
152
0
0
US
Hello Everyone,

I am using .AskMinimumDist method to return 2 points on 2 different bodies, I am then using these 2 points to calculate a vector and use the vector in the .TraceARay method to return the faces that are hit. I am doing all this to reduce runtime in computing mating faces between 2 solid bodies in a big assembly. It is working in 95% scenario but in cases where there is more than one planar mating face between 2 bodies as shown in the attached image, the current algorithm is only able to fetch one pair of planar mating faces. I need all the planar mating / touching faces.

What could solve my issue is if I can get minimum distance points on different planar faces without having to loop over all the faces in the solid body.

Any suggestion on what alternate API's can be used?

Thanks,
Amitabh
 
Replies continue below

Recommended for you

Hi Amitabh,
Is it possible to share the code for TraceARay command? When I try to use it in NXopen it fails with Fatal error. If your code is working, I can make use of them.

FYI, I need to collect the intersection point between a point and adjacent surface. Thank you.

Regards,
Raghav
 
Status
Not open for further replies.
Back
Top