mirror()
[2D] Mirror all sketch geometries across a given line.
Returns: IMirror
tip
See the guide for detailed usage examples.
Signatures
mirror(line: Geometry | Reference): IMirror2D
[2D] Mirror all sketch geometries across a given line.
| Parameter | Type | Description |
|---|---|---|
line | Geometry | Reference | The line to mirror across |
mirror(axis: AxisLike): IMirror2D
[2D] Mirror all sketch geometries across a given axis.
| Parameter | Type | Description |
|---|---|---|
axis | AxisLike | The axis to mirror across — xAxis() / yAxis() for the sketch's own axes; a bare 'x' is the WORLD axis |
mirror(line: Geometry | Reference, ...geometries: SceneObject[]): IMirror2D
[2D] Mirror given sketch geometries across a given line.
| Parameter | Type | Description |
|---|---|---|
line | Geometry | Reference | The line to mirror across |
...geometries | SceneObject[] | The geometries to mirror (optional) |
mirror(axis: AxisLike, ...geometries: SceneObject[]): IMirror2D
[2D] Mirror given sketch geometries across a given axis.
| Parameter | Type | Description |
|---|---|---|
axis | AxisLike | The axis to mirror across — xAxis() / yAxis() for the sketch's own axes; a bare 'x' is the WORLD axis |
...geometries | SceneObject[] | The geometries to mirror (optional) |
mirror(plane: PlaneLike, ...objects: SceneObject[]): IMirror
[3D] Mirror given shapes across a given plane.
| Parameter | Type | Description |
|---|---|---|
plane | PlaneLike | The plane to mirror across |
...objects | SceneObject[] | The shapes to mirror (optional) |
note
All signatures also accept an optional targetPlane parameter as the last argument to draw on a specific plane.