docs / features / Primitive Pyramid
Primitive Pyramid
Status: Implemented

Primitive Pyramid extrudes a regular polygon base to an apex aligned with the +Y axis.
Walkthrough

Inputs
id(string, defaultnull) – names the solid and its faces.baseSideLength(number, default10) – side length of the regular base polygon, taken as a magnitude. Must not be zero.sides(number, default4) – number of base sides, floored to an integer and clamped to a minimum of 3. Must be finite.height(number, default10) – signed tip-to-base distance along Y. Must not be zero.transform(transform, default position[0, 0, 0], rotation[0, 0, 0], scale[1, 1, 1]) – placement baked into the solid before the boolean.boolean(boolean_operation, default operationNONEwith no targets andmergeCoplanarFaces: true) – optional boolean operation after creation.
Behaviour
- The solid is centered along Y, with the base at
-height/2and apex at+height/2. A negative height points the apex downward; the face names are kept. - The base is named
{id}_Base; side faces are{id}_S[0],{id}_S[1], and so on.