2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

PrimitiveType

Identifies the base primitive shape of a BasePart node within a CSG (Constructive Solid Geometry) operation graph (OperationGraph). Used when performing union, negate, and intersect operations to determine how each input part's geometry is represented during the operation.

Items

NameValueDescription
Null0Sentinel value indicating no valid primitive shape; used for uninitialized or invalid nodes in a CSG operation graph.
Ball1A spherical primitive shape, corresponding to the ball/sphere geometry of a Part.
Cylinder2A cylindrical primitive shape, corresponding to the cylinder geometry of a Part.
Block3A box primitive shape, corresponding to the standard rectangular block geometry of a Part; the default primitive type for new Part nodes in a CSG operation graph.
Wedge4A wedge primitive shape, corresponding to the geometry of a WedgePart.
CornerWedge5A corner wedge primitive shape, corresponding to the geometry of a CornerWedgePart.

Null

Sentinel value indicating no valid primitive shape; used for uninitialized or invalid nodes in a CSG operation graph.

FieldValue
value0

Ball

A spherical primitive shape, corresponding to the ball/sphere geometry of a Part.

FieldValue
value1

Cylinder

A cylindrical primitive shape, corresponding to the cylinder geometry of a Part.

FieldValue
value2

Block

A box primitive shape, corresponding to the standard rectangular block geometry of a Part; the default primitive type for new Part nodes in a CSG operation graph.

FieldValue
value3

Wedge

A wedge primitive shape, corresponding to the geometry of a WedgePart.

FieldValue
value4

CornerWedge

A corner wedge primitive shape, corresponding to the geometry of a CornerWedgePart.

FieldValue
value5