How to check whether a Wire is Internal of a Shell?

Hi All,

how can I check whether a wire is external or internal of a Shell?

Regards,

tmacedo29's picture

My question was too wrong / fool, or nobody knows?

Venugopal Gudimetla's picture

I am not aware of OCC functions but here is what I think is a way:

i. get the vertices that makes the wire/edges which you want to test may be you can use TopExp.
ii. now loop over over the edges that make the shell and test if any of the vertices obtained in i are outside or inside the edges.

V

sergey zaritchny's picture

Hi,
You may find something useful in ShapeAnalysis package.
Regards

tmacedo29's picture

Hi,

I've found what I need in ShapeAnalysis_FreeBounds.

Thank you

Gabriel Bauer's picture

Hi Sergey,

this class gives me the wires of a Shell, and it does it very well.
But there is a way to know which Wire is the external and which is the holes of the Shell?

Thank you.