draw_cylinder
Add, paint, or carve cylinder-shaped voxels along an axis in a Buildup part to make pipes, headlights, exhausts, and round details.
Instructions
Add, paint or carve a cylinder (pipes, headlights, exhausts, round details).
Example: an exhaust pipe along Z, 2 voxels across, at x = 5.0, y = 4.0, from z = 20 to 24: axis 'z', center [5, 4], radius 1, span [20, 24]. Wheels: use add_wheels instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | Yes | Cylinder axis: 'x' across the vehicle, 'y' vertical, 'z' along. | |
| mode | No | 'add' fills the shape with the color (replacing voxels there, growing the part); 'paint' recolors only the part's existing voxels inside the shape; 'carve' removes the part's voxels inside the shape. | add |
| part | Yes | Part name, for example 'body' or 'wheel_fl'. | |
| span | Yes | First cell and the cell after the last one along the axis. | |
| color | No | Color name from define_color; required for modes 'add' and 'paint'. | |
| center | Yes | Axis position on the two other axes, in x, y, z order (for axis 'x': [y, z]). Whole numbers for an even diameter, n + 0.5 for an odd one. | |
| radius | Yes | Radius in voxels (voxel centers inside). | |
| project | Yes | Project name, for example 'red_pickup'. |