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

Analyse connectivity of two faces

Nathanaël Geng's picture

I have a TopTools_ListOfShape containing 2 faces sharing a common edge and I look for the connectivity between the two face (C0, C1).
How could I do that ?

Nathanaël Geng's picture

Answer :

const TopoDS_Edge &edg(TopoDS::Edge(edgeExplorer.Current()));

TopTools_ListOfShape parents;
parents = edgeAnceMap.FindFromKey(edg);
const TopoDS_Shape& face1 = parents.First();
const TopoDS_Shape& face2 = parents.Last();
GeomAbs_Shape cont = BRep_Tool::Continuity(edg, TopoDS::Face(face1), TopoDS::Face(face2));

if (cont == 0)
{ // Sharp edge
std::cout }
{ // Dead edge
std::cout }

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.