Primitives

Basic shapes that form the building blocks of your models.

3D Primitives

sphere(radius)                    // Ball
cube(size)                        // Box with equal sides
box3(width, height, depth)        // Rectangular box
cylinder(radius, height)          // Cylinder along Y axis
capsule(radius, height)           // Pill shape
torus(major_radius, minor_radius) // Donut
cone(radius, height)              // Cone pointing up
ellipsoid(rx, ry, rz)             // Stretched sphere

Additional Shapes

rounded_box(w, h, d, radius)  // Box with rounded edges
octahedron(size)              // 8-faced platonic solid
hex_prism(radius, height)     // Hexagonal column
tri_prism(width, height)      // Triangular prism
plane(nx, ny, nz, offset)     // Infinite plane
ground_plane()                // Shortcut for y=0 plane