To generate an Extrusion on an object in the Main Menu select New Entity - > Generation - > Extrusion
There are 3 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. Optionally you can define the Scale Factor to build extrusion with scaled opposite base. Scaling is possible only with 1D and 2D bases.
It is possible to select in GUI several Base Shapes to make several extrusions (using Shift button).
The Result of the operation will be a GEOM_Object (edge, face, shell, solid or compsolid).
Both Directions checkbox allows extruding the source object both forward and backward. With this option scaling is not possible.
TUI Command: geompy.MakePrismVecH(Base, Vector, Height, theScaleFactor = -1.0)
Arguments: Name + one or several shapes (vertex, edge, planar wire, face or shell) serving as base objects + 1 vector (for direction of the extrusion) + 1 value (dimension) + 1 optional value (scale factor for the opposite base).
Advanced options Preview
Secondly, you can define the Extrusion by the Base Shape(s) and the Start and End Point of the Vector (in this way you don't need to create it in advance). Optionally you can define the Scale Factor to build extrusion with scaled opposite base. Scaling is possible only with 1D and 2D bases.
Both Directions checkbox allows extruding the source object both forward and backward. With this option scaling is not possible.
TUI Command: geompy.MakePrism(Base, Point1, Point2, theScaleFactor = -1.0)
Arguments: Name + one or several shapes (vertex, edge, planar wire, face or shell) serving as base objects + 2 vertices + 1 optional value (scale factor for the opposite base).
Finally, you can define the Extrusion by the Base Shape(s) and the DX, DY, DZ Vector. Optionally you can define the Scale Factor to build extrusion with scaled opposite base. Scaling is possible only with 1D and 2D bases.
Both Directions checkbox allows extruding the source objects both forward and backward. With this option scaling is not possible.
TUI Command: geompy.MakePrismDXDYDZ(Base, dx, dy, dz, theScaleFactor = -1.0)
Arguments: Name + one or several shapes (vertex, edge, planar wire, face or shell) serving as base objects + 3 axis directions + 1 optional value (scale factor for the opposite base).
Examples:
Our TUI Scripts provide you with useful examples of creation of Complex Geometric Objects.