Skip to main content

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.

ParameterTypeDescription
lineGeometry | ReferenceThe line to mirror across

mirror(axis: AxisLike): IMirror2D

[2D] Mirror all sketch geometries across a given axis.

ParameterTypeDescription
axisAxisLikeThe 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.

ParameterTypeDescription
lineGeometry | ReferenceThe line to mirror across
...geometriesSceneObject[]The geometries to mirror (optional)

mirror(axis: AxisLike, ...geometries: SceneObject[]): IMirror2D

[2D] Mirror given sketch geometries across a given axis.

ParameterTypeDescription
axisAxisLikeThe axis to mirror across — xAxis() / yAxis() for the sketch's own axes; a bare 'x' is the WORLD axis
...geometriesSceneObject[]The geometries to mirror (optional)

mirror(plane: PlaneLike, ...objects: SceneObject[]): IMirror

[3D] Mirror given shapes across a given plane.

ParameterTypeDescription
planePlaneLikeThe plane to mirror across
...objectsSceneObject[]The shapes to mirror (optional)
note

All signatures also accept an optional targetPlane parameter as the last argument to draw on a specific plane.