Shapes can be centered about the X, Y or Z axis.
Note: The center of a shape is calculated as the midpoint between minimal and maximum points.
let obj = sphere(5) obj = center(true,cube(), obj) // center the objects across all axes obj = center([true, true, false], obj) // center the object across only X and Y axis
The CSG library functions can also be used. NOTE: Deprecated in the V2 API
cube().center(true) // center the object across all axes cube().center([true,true,false]) // center the object across only X and Y axis