The mirrorY()
method is used in CadQuery to create a mirror copy of an existing solid or shape around the Y-axis.
mirrorY()
This method does not have any parameters.
This method returns a new solid or shape that is a mirror copy of the original, with all coordinates reflected across the Y-axis.
# Import the cadquery module
import cadquery as cq
# Create a box
box = cq.Workplane().box(3, 3, 3)
# Mirror the box around the Y-axis
mirror_box = box.mirrorY()
# Display the original box and the mirrored box
show_object(box)
show_object(mirror_box)
This will create a box and then create a mirror copy of the box that is reflected across the Y-axis, and display them both.