3 \page glue_faces_operation_page Glue Faces
5 \n To <b>Glue Faces</b> in the <b>Main Menu</b> select <b>Repair - > Glue Faces</b>.
8 \n This operation glues faces that are coincident with respect to the
11 \n <b>Arguments:</b> Name + Shapes + Tolerance value.
12 \n <b>Advanced option:</b>
13 \ref restore_presentation_parameters_page "Set presentation parameters and sub-shapes from arguments".
14 \n The \b Result will be a \b GEOM_Object.
19 \n <b>TUI Commands:</b>
21 <em>geompy.MakeGlueFaces( theShapes, theTolerance, doKeepNonSolids )</em>,
22 \n where \em theShapes is either a list or compound of shapes to be glued, \em
23 theTolerance is a maximum distance between two faces, which can
24 be considered as coincident. The \em doKeepNonSolids flag allows to
25 throw away non-solids from the result, if false. The \b Result will
26 be a new \b GEOM_Object.
28 \n It is also possible to manually select the faces that will be
29 glued - select the shape, specify the tolerance and press \b Detect button.
33 \n \b Geometry module detects the faces where gluing can be
34 performed and displays a notification.
38 \n The faces that can be glued are colored in red. It is
39 possible to select the faces for gluing in the 3D viewer.
40 The selected faces will be marked in white.
42 When the faces are glued their edges are glued as well. By default, other
43 edges are not glued. To force gluing of all edges, check <b>Glue all coincident edges</b>
46 \n <b>TUI Commands:</b>
48 <em>geompy.GetGlueFaces( theShapes, theTolerance )</em>,
49 \n where \em theShapes is a list or compound of shapes to be glued, \em
50 theTolerance is a maximum distance between two faces, which can
51 be considered as coincident. The \b Result will be a list of \b
52 GEOM_Objects (faces), containing one sub-shape per each detected set of
53 coincident sub-shapes. For example if there are two coincident faces
54 in selected shapes, the result list contains one of the two coincident faces.
56 <em>geompy.MakeGlueFacesByList( theShapes, theTolerance, theFaces,
57 doKeepNonSolids, doGlueAllEdges )</em>,
58 \n where \em theShapes is either a list or compound of shapes to be glued, \em
59 theTolerance is a maximum distance between two faces, which can
60 be considered as coincident, \em theFaces is a list of
61 sub-shapes to be glued. The \em doKeepNonSolids flag allows to throw
62 away non-solids from the result, if false. The \em doGlueAllEdges
63 allows to glue all edges, not only owned by glued faces. The \b
64 Result will be a new \b GEOM_Object.
68 \image html glue_faces1.png
69 <center><em>Object that needs gluing</em></center>
71 \image html glue_faces2.png
72 <center><em>Glued object</em></center>
74 \image html glue_faces3.png
75 <center><em>Manual selection of faces for gluing</em></center>
77 Our <b>TUI Scripts</b> provide you with useful examples of the use of
78 <b>Repairing Operations</b> \ref tui_glue_faces "Glue Faces".