Skip to main content

Module primitives

Module primitives 

Source

Enums§

PrimitiveKind
Available generated shapes. 2D shapes lie on the XY plane facing +Z.

Functions§

capsule
Capsule along Y: height = total height, radius radius.
circle_xy
2D filled circle on the XY plane, normal +Z.
cone
Cone along Y, base at -height/2.
cube
Axis-aligned box centered at origin.
cylinder
Cylinder along Y, centered.
generate
Build a primitive mesh. a/b are size parameters (radius, width, height…), segments controls tessellation.
rect_xy
2D rectangle on the XY plane, normal +Z.
torus
Torus in the XZ plane.
uv_sphere
UV sphere, poles on +Y/-Y.