Skip to main content

Import

Inheritance: extends FillMesh implements IShape

Constructor

string
number[]
required
number
number
number
number
boolean
Profile
Placement
required

Properties

string
boolean
boolean
boolean
Map<string, THREE.Object3D<THREE.Object3DEventMap>>
Map<string, THREE.Object3D<THREE.Object3DEventMap>>
CuboidOptions
number | undefined
number | undefined
number
Extrusion distance along +Y. Re-extrudes only; the footprint is untouched.
boolean
Convert the parametric box into an explicit, editable footprint. One-way to match RectanglePrimitive: once freeform, width/depth no longer drive the ring, so flipping back would silently discard edits.
Profile
number
boolean
The outline of the extruded solid, drawn by the kernel. outlineColor (from the profile mesh) has no effect on a CuboidShape.

Methods

setOPConfig

getOPConfig

setOPGeometry

setOPPlacement

Place the profile and its current extrusion: scale and turn (XYZ, radians) about the origin, then move.

setOPMaterial

dispose

Release the extrusion and the profile mesh.

Types

IShape

The package does not export this type by name.

CuboidOptions

A cuboid authored as a 2D rectangular profile extruded to a height, rather than a fixed kernel box primitive.

Placement

Local-frame transform from an asset/instance’s definition coordinates to world coordinates.
Vec3
Local-frame anchor for rotation and scale. Defaults to [0, 0, 0].
Vec3
required
Translation (world-space, meters), applied AFTER rotation and scale.
Vec3
required
Euler angles (degrees), in THREE.js default XYZ order.
Vec3
required
Per-axis scale factors.
Last modified on November 2, 2026