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

Problem with TopExp_Explorer

Yuqian chen's picture

Hi everyone,

I'm trying to get the common part of two coplanar faces by BRepAlgoAPI_Common and get the faces by TopExp_Explorer, but the depth of the Explorer is always -1, so I cannot get the face by TopExp_Explorer.Current. Here is the code:

commom_shell = BRepAlgoAPI_Common(shell_a, shell_b).Shape()
faces_Exp = TopExp_Explorer(common_shell, OCC.TopAbs.TopAbs_FACE)
depth = faces_Exp.Depth()

Does anyone know, why the depth of a TopExp_Explorer is <0?

Thanks in advance!!!

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.