copy()
[2D] Creates linear copies along an axis inside a sketch.
Returns: SceneObject
tip
See the guide for detailed usage examples.
Signatures
copy(type: "linear", axis: AxisLike, options: LinearCopyOptions, ...objects: SceneObject[]): SceneObject
[2D] Creates linear copies along an axis inside a sketch.
| Parameter | Type | Description |
|---|---|---|
type | "linear" | Must be 'linear' |
axis | AxisLike | The axis to copy along |
options | LinearCopyOptions | Copy count, spacing, etc. |
...objects | SceneObject[] | The objects to copy (defaults to last object) (optional) |
copy(type: "linear", axis: AxisLike[], options: LinearCopyOptions, ...objects: SceneObject[]): SceneObject
[2D] Creates linear copies along multiple axes inside a sketch.
| Parameter | Type | Description |
|---|---|---|
type | "linear" | Must be 'linear' |
axis | AxisLike[] | The axes to copy along |
options | LinearCopyOptions | Copy count, spacing, etc. |
...objects | SceneObject[] | The objects to copy (defaults to last object) (optional) |
copy(type: "linear", axis: AxisLike, options: LinearCopyOptions, ...objects: SceneObject[]): SceneObject
[3D] Creates linear copies along an axis.
| Parameter | Type | Description |
|---|---|---|
type | "linear" | Must be 'linear' |
axis | AxisLike | The axis to copy along |
options | LinearCopyOptions | Copy count, spacing, etc. |
...objects | SceneObject[] | The objects to copy (defaults to last object) (optional) |
copy(type: "linear", axis: AxisLike[], options: LinearCopyOptions, ...objects: SceneObject[]): SceneObject
[3D] Creates linear copies along multiple axes.
| Parameter | Type | Description |
|---|---|---|
type | "linear" | Must be 'linear' |
axis | AxisLike[] | The axes to copy along |
options | LinearCopyOptions | Copy count, spacing, etc. |
...objects | SceneObject[] | The objects to copy (defaults to last object) (optional) |
copy(type: "circular", center: Point2DLike, options: CircularCopyOptions, ...objects: SceneObject[]): SceneObject
[2D] Creates circular copies around a center point inside a sketch.
| Parameter | Type | Description |
|---|---|---|
type | "circular" | Must be 'circular' |
center | Point2DLike | The center point to copy around |
options | CircularCopyOptions | Copy count, angle, etc. |
...objects | SceneObject[] | The objects to copy (defaults to last object) (optional) |
copy(type: "circular", axis: AxisLike, options: CircularCopyOptions, ...objects: SceneObject[]): SceneObject
[3D] Creates circular copies around an axis.
| Parameter | Type | Description |
|---|---|---|
type | "circular" | Must be 'circular' |
axis | AxisLike | The axis to copy around |
options | CircularCopyOptions | Copy count, angle, etc. |
...objects | SceneObject[] | The objects to copy (defaults to last object) (optional) |