Hello everyone!
/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />
I now trying to find surface 2 and surface 3 that they are pairs of opposite surfaces to surface 1.
Suppose we get a virtual straight line cross centroid of surface 1 parallel to surface 1's normal vector,
I want to find first and second surfaces that have shortest distance to surface 1 alone the virtual line,
in this example ,they are surface 2 &3
'hm_measureshortestdistance' can only find surface 5 and surface 6 because they are closer than
surface 2&3
/emoticons/default_sad.png' srcset='/emoticons/sad@2x.png 2x' title=':(' width='20' />
I tried to Create temp node attached to surface 1 located in centroid(hm_getcentroid surfs) of surface 1,duplicate the temp node
and then project the duplicated node to solid surfs with normal option(*markprojectnormallytosurface) ,in order to get distance list of nodes,
the original temp node and duplicated nodes distance list.By using lsort -increasing -real $distancelist , I got first two distance and
find surface 2 & 3 that opposite to surface 1.
But.it's really complicated and the script runs really really slowly
/emoticons/default_sad.png' srcset='/emoticons/sad@2x.png 2x' title=':(' width='20' />
Is there any efficient way to get surface 2 & 3?
I'm really really sorry that I'm not good at English.
Thanks in advance!Thanks for your Great patient!
/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />
@tinh @vipin
Unable to find an attachment - read this blog