Salome HOME
9f31c4d04434ae09c024b2e9bbdf26f819121f03
[modules/geom.git] / doc / salome / gui / GEOM / input / creating_face.doc
1 /*!
2
3 \page create_face_page Face
4
5 To create a \b Face in the <b>Main Menu</b> select <b>New Entity - >
6 Build - > Face</b>
7
8 There are two algorithms to create a \b Face. In both cases the \b Result
9 of the operation will be a GEOM_Object (FACE).
10
11 \n Firstly, to create a \b Face you need to select input shape(s). The list of
12 input shapes can include shapes of any type except vertices; if the shapes are
13 neither wires nor edges, the algorithm extracts all edges from
14 the input shapes and works on the obtaineed edges.
15 \n The edges and wires do not necessarily have to be closed, the
16 algorithm automatically builds a wire of maximum length from all
17 given edges and wires. If several closed wires are detected the algorithm tries
18 to create a face with holes. It is possible only if there is only one wire
19 that can be interpreted as an outer one; other wires can be considered as
20 inner ones.
21 \n Check <b>Try to create a planar face</b> to create a planar
22 face or nothing if it is impossible.
23 \note Please note, that the resulting face can have a huge tolerance, if the initial wire has a big deviation from the plane. If the final tolerance exceeds 1e-06, a warning will be shown, but the face will be created and published in the study in a normal way. Using such faces can lead to failures or unpredictable results in most operations.
24
25 \n The \b Result will be a \b GEOM_Object (FACE).
26
27 \n <b>TUI Command:</b> <em>geompy.MakeFaceWires([list of Shapes], isPlanarWanted)</em>
28 \n <b>Arguments:</b> Name + 1 wire.
29
30 \image html neo-obj4.png
31
32 \n Secondly, it is possible to create a face based on another face's surface and bounded by a wire.
33
34 \n The \b Result will be a \b GEOM_Object (FACE).
35
36 \n <b>TUI Command:</b> <em>geompy.MakeFaceFromSurface(theFace, theWire)</em>
37 \n <b>Arguments:</b> Name + 1 face + 1 wire.
38
39 \image html neo-obj4_2.png
40
41 \n <b>Example:</b>
42
43 \image html facesn1.png
44
45 \image html facesn2.png
46
47 \image html facesn3.png "Examples of faces"
48
49 Our <b>TUI Scripts</b> provide you with useful examples of creation of 
50 \ref tui_creation_face "Advanced Geometric Objects".
51
52 */