biw01
Automotive
- Dec 31, 2011
- 152
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
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