To create a Face in the Main Menu select New Entity - > Build - > Face
There are three algorithms to create a Face. In all cases the Result of the operation will be a GEOM_Object (FACE).
Firstly, to create a Face you need to select input shape(s). The list of input shapes can include shapes of any type except vertices; if the shapes are neither wires nor edges, the algorithm extracts all edges from the input shapes and works on the obtained edges.
The edges and wires do not necessarily have to be closed, the algorithm automatically builds a wire of maximum length from all given edges and wires. If several closed wires are detected the algorithm tries to create a face with holes. It is possible only if there is only one wire that can be interpreted as an outer one; other wires can be considered as inner ones.
Check Try to create a planar face to create a planar face or nothing if it is impossible.
The Result will be a GEOM_Object. It can be either a single face or, in specific cases, a compound of faces.
TUI Command: geompy.MakeFaceWires([list of Shapes], isPlanarWanted)
Arguments: Name + 1 wire.
Secondly, it is possible to create a face based on another face's surface and bounded by a wire.
The Result will be a GEOM_Object (face).
TUI Command: geompy.MakeFaceFromSurface(theFace, theWire)
Arguments: Name + 1 face + 1 wire.
Thirdly, it is possible to create a Face by specifying a set of edges forming a closed wire and constraints:
The Result will be a GEOM_Object (face).
TUI Command: geompy.MakeFaceWithConstraints([List of constraints])
Arguments: Name + List of input edges and constraint faces. If a constraint face is missing for some edge, this means that there is no constraint associated to this edge.
Example:
Our TUI Scripts provide you with useful examples of creation of Advanced Geometric Objects.