For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

about wire from face

Anonymous's picture
Forums: 

how to judge the wire by inner-circled or outer-circled face ?
thanks

Rob Bachrach's picture

If I understand your question, you want to know if a wire is the outline of a face or a hole. You can try getting the outermost wire of the face using BRepTools::OuterWire. You can then, if necessary, get the distance between this wire and a vertex on the wire of interest (BRepExtrema_DistShapeShape). If the distance is essentially 0, you have your outer wire. Of course it's possible that once you have the outer wire, the rest is easy.