To Glue Faces in the Main Menu select Repair - > Glue Faces.
This operation glues faces that are coincident with respect to the given tolerance value.
The Result will be a GEOM_Object.
TUI Command : geompy.MakeGlueFaces(theShape, theTolerance), where theShape is a compound of shapes to be glued, theTolerance is a maximum distance between two faces, which can be considered as coincident.
Arguments: Name + 1 Compound + Tolerance value
Example:
Our TUI Scripts provide you with useful examples of the use of Repairing Operations.