# Building geometrical objects

In GEOM you can create basic and advanced geometrical objects (2D & 3D elements) using the following building functions:

- Explode

- Build

- Edge

- Wire

- Face

- Shell

- Solid

- Compound

To use Explode:

In the main menu select New Entity > Explode.

Explode

Description: Returns a list of subshapes (vertices, edges, wires etc.) of the given shape.

Result : List of GEOM_Objects.

TUI Command:

- geompy.SubShape(Shape, ListOfID), where Shape is a shape whose subshape(s) is (are) retrieved, ListOfID is a list of requested sub shapes IDs. To get a subshape ID use method GetSubShapeID().

- geompy.SubShapeAll(Shape, TypeOfShape), where Shape is a shape to be exploded on sub shapes of type TypeOfShape.

Arguments: 1 SHAPE + 1 type of SubShape.

Dialog Box:

To use building functions:

In the main menu select New Entity > Build submenu.

Edge

Description: Creates an edge.

Result: GEOM_Object (EDGE).

TUI Command: geompy.MakeEdge(Vertex1, Vertex2), where Vertex1 and Vertex2 are correspondingly the first and the last vertex of the edge.

Arguments: Name + 2 vertices.

Dialog Box:

Example:

Wire

Description: Creates a wire.

Result: GEOM_Object (WIRE).

TUI Command : geompy.MakeWire(ListOfShape), where ListOfShape is a list of edges and/or wires from which the wire to be constructed.

Arguments: Name + List of connected wires or edges..

Dialog Box:

Example:

Face

Description: Creates a face.

Result: GEOM_Object (FACE).

TUI Command: geompy.MakeFace(Wire, WantPlanarFace), where Wire is a wire and if boolean parameter WantPlanarFace is planar then only a planar face or no face is constructed.

Arguments: Name + 1 wire.

Dialog Box:

Example:

Shell

Description: Creates a shell.

Result: GEOM_Object (SHELL).

TUI Command: geompy.MakeShell(ListOfShape), where ListOfShape is a list of faces and (or) shells from which the shell is constructed.

Arguments: Name + List of faces having connected edges.

Dialog Box:

Example:

Solid

Description: Creates a solid - closed geometrical 3D element.

Result: GEOM_Object (SOLID).

TUI Command: geompy.MakeSolid(ListOfShape), where ListOfShape is a list of shells from which the solid is constructed.

Arguments: Name + A closed shell or a list of shells.

Dialog Box:

Compound

Description: Creates a compound.

Result: GEOM_Object (COMPOUND).

TUI Command: geompy.MakeCompound(ListOfShape), where ListOfShape is a list of shapes from which the compound is constructed.

Arguments: Name + List of shapes.

Dialog Box:

Example: