create_polygon_prism
Creates an N-sided regular prism for non-cylindrical shapes such as hex sockets, octagonal columns, or triangular prisms. Specify sides, radius, and depth.
Instructions
Create an N-sided regular prism (polygon-based cylinder).
Useful for hex sockets, octagonal columns, triangular prisms, or any straight-sided geometry where a 32-sided round cylinder is the wrong primitive. For a hex socket cutter on an M3 button-head screw, use sides=6.
Args: sides: Number of sides for the polygon base. Range: 3-64. radius: Circumscribed radius (center to vertex). Must be > 0. depth: Height of the prism along its Z axis. Must be > 0. name: Optional name for the object. Auto-generated if empty. location: XYZ position as a 3-element list/tuple. Defaults to origin. rotation: XYZ Euler rotation in radians as a 3-element list/tuple. scale: XYZ scale as a 3-element list/tuple. Defaults to (1,1,1).
Returns: Dict with the created object's name, type, location, and sides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sides | Yes | ||
| radius | No | ||
| depth | No | ||
| name | No | ||
| location | No | ||
| rotation | No | ||
| scale | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||