To generate an Extrusion on an object in the Main Menu select New Entity - > Generation - > Extrusion
There are 2 algorithms for creation of an Extrusion (Prism).
The Result of the operation will be a GEOM_Object (edge, face, shell solid or compsolid).
Firstly, you can define the Base Shape (a basis of the extrusion), the Vector (a direction of the extrusion) and the Height of extrusion.
The Result of the operation will be a GEOM_Object (edge, face, shell, solid or compsolid).
Both Directions checkbox allows extruiding the source object both forward and backward.
TUI Command: geompy.MakePrismVecH(Base, Vector, Height)
Arguments: Name + 1 shape (vertex, edge, planar wire, face or shell) serving as base object + 1 vector (for direction of the extrusion) + 1 value (dimension).
Secondly, you can define the Extrusion by the Base Shape and the Start and End Point of the Vector (in this way you don't need to create it in advance).
Both Directions checkbox allows extruiding the source object both forward and backward.
TUI Command: geompy.MakePrism(Base, Point1, Point2)
Arguments: Name + 1 shape (vertex, edge, planar wire, face or shell) serving as base object + 2 vertices.
Finally, you can define the Extrusion by the Base Shape and the DX, DY, DZ Vector
Both Directions checkbox allows extruding the source objects both forward and backward.
TUI Command: geompy.MakePrismDXDYDZ(Base, dx, dy, dz)
Arguments: Name + 1 shape (vertex, edge, planar wire, face or shell) serving as base object + 3 axis directions.
Examples:
Our TUI Scripts provide you with useful examples of creation of Complex Geometric Objects.