Copy
Extends SceneObject
Inherited from SceneObject
name()
name(value: string): this
Sets a custom display name for this object, overriding the default type-based name.
| Parameter | Type | Description |
|---|---|---|
value | string | The display name to assign. |
reusable()
reusable(): this
Marks this object as reusable. Reusable objects retain their shapes when
consumed by features (e.g., extrude, revolve), allowing multiple features
to reference the same source geometry. Use remove(obj) to force-remove
shapes from a reusable object.
Methods
instance()
instance(index: number): SceneObject
Selects one grid slot of a 2D (in-sketch) copy as a whole geometry —
every edge the copy stamped at that position, usable wherever a whole
geometry operand is accepted (e.g. fuse(cp.instance(0), cp.instance(3))).
Linear copies linearize the grid in axis order (the first axis varies
slowest), with the original at its own slot — 0 when not centered, the
center slot when centered. Circular copies count rotation steps with the
original at 0, the same numbering the skip option uses. 3D copies do
not support this accessor.
Returns: SceneObject
| Parameter | Type | Description |
|---|---|---|
index | number | The grid-slot index. |