create_primitive
Create a 3D primitive at its true size with real mesh dimensions and scale 1, so bevels stay even. Returns its world bounding box so you can place the next part precisely.
Instructions
Create a primitive built at its TRUE size (mesh data, scale stays 1, so bevels stay even). Returns its world bounding box so you can place the next part precisely.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| size | No | box: [x,y,z] metres (or one number for a cube). plane/grid: [x,y]. | |
| type | Yes | quad_sphere = all-quad sphere, best with subdivision. tube = hollow cylinder (radius + inner_radius). capsule = cylinder with hemispherical ends (depth = total length). | |
| bevel | No | Rounded edges via an angle-limited Bevel modifier with hardened normals: width in metres (e.g. 0.002 for a 10 cm part), or {width, segments, angle}. true = automatic width. | |
| depth | No | Height along Z for cylinder/cone/tube/capsule/pyramid. | |
| rings | No | sphere: rings; torus: minor segments; cylinder/cone: height segments (needed before bend/twist). | |
| origin | No | Where the origin sits on the part's bounding box: center, bottom, top, left, right, front, back, min, max, or keep (geometry coordinates exactly as given). origin='bottom' + location z=0 stands a part on the floor. | center |
| parent | No | Parent object name (world transform kept). | |
| radius | No | cylinder/cone/tube/sphere/capsule radius; torus major radius; pyramid corner radius. | |
| shading | No | auto = smooth with sharp edges kept above smooth_angle (best default); smooth; flat. | auto |
| location | No | World position [x,y,z] (metres) of the object origin. | |
| material | No | Material preset name (list_material_presets), or {preset, color, roughness, weathering, ...} like apply_material, or the name of an existing material. Presets with a real-world scan use Poly Haven automatically; {'polyhaven': 'mossy rock'} picks any Poly Haven texture by description. | |
| rotation | No | Rotation [x,y,z] in degrees. | |
| segments | No | Radial resolution (default 48; quad_sphere: per cube edge, default 8; grid: cuts). | |
| collection | No | Collection to put it in (created if missing). | |
| radius_top | No | cone/cylinder top radius (0 = point). | |
| subdivision | No | Subdivision Surface levels (1-3) for soft/organic shapes. | |
| inner_radius | No | tube inner radius. | |
| minor_radius | No | torus tube radius. |