Find more posts tagged with
@tinh Passing list of all surfaceid to get closest surface makes code slow. Do you know any code without passing surface id list?
Secondly, if its a single surface cad, then i will not get opposite surfaces, instead i get surfaces on same plane using closest surface. How to check this?
yes, hm_getclosestsurface is very slow
using hm_measureshortestdistance is faster
after finding the closest surf, use hm_markremove to remove it from surf mark, and continue searching next closest surf
Ple
@tinh Passing list of all surfaceid to get closest surface makes code slow. Do you know any code without passing surface id list?
Secondly, if its a single surface cad, then i will not get opposite surfaces, instead i get surfaces on same plane using closest surface. How to check this?
Clarify abt my second doubt. @tinh
@tinh Can you elaborate. Pls.
@tinh i am using hm_triplecos function. what is happening is sometimes it gives +1 or -1 for opposite surfaces/parallel surfaces both. so, getting opposite surfaces in case of ribs fails in some areas. that is, it may get surface of nearby rib too in case of plastics. what to do?
@tinh how to 'Unify comps with normal + (red outer)?'
@tinh, will be helpful in plastic comps with full of ribs?
Try find closest surf from elem center