draw_ellipsoid
Add, paint, or carve a sphere or ellipsoid into a voxel part by specifying center and radii. Use it to build domes, balls, or rounded shapes in Teardown models.
Instructions
Add, paint or carve an ellipsoid or a sphere (voxel centers inside the surface).
Example: a dome 1.2 m wide, 0.4 m high, 2 m long on a roof whose top is y = 14: center [0, 14, 0], radii [6, 4, 10] (the lower half lands inside the roof).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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'. | |
| color | No | Color name from define_color; required for modes 'add' and 'paint'. | |
| radii | Yes | Half sizes [rx, ry, rz] in voxels; equal values make a sphere. | |
| center | Yes | Center [x, y, z] in voxels (continuous coordinates). | |
| project | Yes | Project name, for example 'red_pickup'. |