/*! \page glue_faces_operation_page Glue Faces / Edges \n To Glue Faces in the Main Menu select Repair - > Glue Faces. \n To Glue Edges in the Main Menu select Repair - > Glue Edges. \n This operation glues faces/edges that are coincident with respect to the given tolerance value. \n Arguments: Name + Compound of shapes + Tolerance value. \n Advanced option: \ref restore_presentation_parameters_page "Set presentation parameters and subshapes from arguments". \n The \b Result will be a \b GEOM_Object. \image html glue1.png \n \image html glue4.png \n TUI Commands: geompy.MakeGlueFaces(theShape,theTolerance,doKeepNonSolids) and geompy.MakeGlueEdges(theShape,theTolerance), where \em theShape is a compound of shapes to be glued, \em theTolerance is a maximum distance between two faces/edges, which can be considered as coincident. The \em doKeepNonSolids flag allows to throw away non-solids from the result, if false. The \b Result will be a new \b GEOM_Object. \n It is also possible to manually select the faces/edges that will be glued - select the shape, specify the tolerance and press \b Detect button. \image html glue2.png \n \image html glue5.png \n \b Geometry module detects the faces/edges where gluing can be performed and displays a notification. \image html glue3.png \n The faces/edges that can be glued are colored in red. It is possible to select the faces/edges for gluing in the 3D viewer. The selected faces/edges will be marked in white. \n For faces gluing their edges are also glued. By default, other edges are not glued (this concerns only Glue Faces, of course). To force all edges gluing, check the "Glue all coincident edges" checkbox. \n TUI Commands: geompy.GetGlueFaces(theShape,theTolerance) and geompy.GetGlueEdges(theShape,theTolerance), where \em theShape is a compound of shapes to be glued, \em theTolerance is a maximum distance between two faces/edges, which can be considered as coincident. The \b Result will be a list of \b GEOM_Objects, containing one sub shape per each detected set of coincident sub shapes. \n geompy.MakeGlueFacesByList(theShape,theTolerance,theFaces,doKeepNonSolids,doGlueAllEdges) and geompy.MakeGlueEdgesByList(theShape,theTolerance,theEdges), where \em theShape is a compound of shapes to be glued, \em theTolerance is a maximum distance between two faces/edges, which can be considered as coincident, \em theFaces/theEdges is a list of subshapes to be glued. The \em doKeepNonSolids flag allows to throw away non-solids from the result, if false. The \em doGlueAllEdges allows to glue all edges, not only owned by glued faces. The \b Result will be a new \b GEOM_Object. \n Example: \image html glue_faces1.png
Object that needs gluing
\image html glue_faces2.png
Glued object
\image html glue_faces3.png
Manual selection of faces for gluing
Our TUI Scripts provide you with useful examples of the use of Repairing Operations \ref tui_glue_faces "Glue Faces" and \ref tui_glue_edges "Glue Edges". */