Description of the Shape type
The built-in Shape type represents a figure in 3D space.
Properties of type Shape
Below is a list of the available properties provided by the Shape type. Click on a property name to see its detailed description and examples.
Shape Type Methods
| Method | Description | 
| isEmpty() | Checks if the shape is empty. | 
| boundBox() | Returns the bounding box of the shape. | 
Topological Elements
| Method | Description | 
| vertices() | Returns a list of vertices of the shape. | 
| edges() | Returns a list of edges of the shape. | 
| nearFace() | Returns the nearest face of the shape. | 
| nearEdge() | Returns the nearest edge of the shape. | 
| nearVertex() | Returns the nearest vertex of the shape. | 
Style representations
| Method | Description | 
| fill() | Returns the filled shape. | 
| wire() | Returns the wireframe shape. | 
Shape Creation and Modification
| Method | Description | 
| extrude() | Extrudes the shape in 3D along a given direction. | 
| extrudeX() | Extrudes the shape along the X-axis. | 
| extrudeY() | Extrudes the shape along the Y-axis. | 
| extrudeZ() | Extrudes the shape along the Z-axis. | 
| unify() | Unifies the shape by merging its parts into one. | 
Boolean operations
Movement and Translation
| Method | Description | 
| translate() | Translates the shape by a given vector. | 
| translateX() | Translates the shape along the X-axis. | 
| translateY() | Translates the shape along the Y-axis. | 
| translateZ() | Translates the shape along the Z-axis. | 
| move() | Returns a new shape, moved by a given vector. | 
| moveX() | Returns a new shape, moved along the X-axis. | 
| moveY() | Returns a new shape, moved along the Y-axis. | 
| moveZ() | Returns a new shape, moved along the Z-axis. | 
Rotation
| Method | Description | 
| rotate() | Rotates the shape around an arbitrary axis. | 
| rotateX() | Rotates the shape around the X-axis. | 
| rotateY() | Rotates the shape around the Y-axis. | 
| rotateZ() | Rotates the shape around the Z-axis. | 
Reflection
| Method | Description | 
| mirrorO() | Reflects the shape about the origin (0, 0). | 
| mirrorX() | Reflects the shape about the X-axis. | 
| mirrorY() | Reflects the shape about the Y-axis. | 
| mirrorZ() | Reflects the shape about the Z-axis. | 
| mirrorXY() | Reflects the shape about the XY plane. | 
| mirrorYZ() | Reflects the shape about the YZ plane. | 
| mirrorXZ() | Reflects the shape about the XZ plane. | 
Scaling
| Method | Description | 
| scale() | Scales the shape with respect to the origin (0, 0). | 
| scaleX() | Scales the shape along the X-axis. | 
| scaleY() | Scales the shape along the Y-axis. | 
| scaleZ() | Scales the shape along the Z-axis. | 
| scaleXY() | Scales the shape in the XY plane. | 
| scaleYZ() | Scales the shape in the YZ plane. | 
| scaleXZ() | Scales the shape in the XZ plane. | 
| scaleXYZ() | Scales the shape uniformly along all axes. | 
Geometric Parameters
Export
| Method | Description | 
| toFileSTEP() | Saves the shape in a STEP file format. | 
    Last update: 11 August 2025, 8:45