Creates a mirror transformation matrix.
rhinscriptsyntax.XformMirror (mirror_plane_point, mirror_plane_normal)
rhinscript.transformation.XformMirror (mirror_plane_point, mirror_plane_normal)
mirror_plane_point |
Required. List of 3 numbers, or Point3d. A 3-D point on mirror plane. |
mirror_plane_normal |
Required. List of 3 numbers, Vector3d, or Point3d. A 3-D vector that is normal to mirror plane. |
Transform |
The 4x4 transformation matrix is successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
objs = rs.GetObjects("Select objects to mirror")
if objs:
plane = rs.ViewCPlane()
xform = rs.XformMirror(plane.Origin, plane.Normal)
rs.TransformObjects( objs, xform, True )