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

How to use BRepFeat_Gluer

Alexander Luger's picture

Hey guys!

I am trying to glue two faces together, but I was not a able to get a result (exception raised).

TopoDS_Face face1 = TopoDS::Face(shape1);
TopoDS_Face face2 = TopoDS::Face(shape2);
BRepFeat_Gluer aGluer(shape1,shape2);
LocOpe_FindEdges fined(face1,face2);
for(fined.InitIterator(); fined.More(); fined.Next())

What is wrong with the code above?


Adorjáni Alpár's picture


I have seen in the demo Application the example. I understand it so that the Bind function gets only the common elements to unite them.
So when here we want to glue two faces, then the gluer gets those faces but the Binder then the common edges to remove them.
So first you have to search for the neighbour, common edges.

When it would be a solid glueing, only then must the bind to remove the common faces.