XformMirror

Creates a mirror transformation matrix.

Syntax

rhinscriptsyntax.XformMirror (mirror_plane_point, mirror_plane_normal)

rhinscript.transformation.XformMirror (mirror_plane_point, mirror_plane_normal)

Parameters

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.

Returns

Transform

The 4x4 transformation matrix is successful.

None

If not successful, or on error.

Example

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 )

Also See

XformPlanarProjection

XformRotation

XformScale

XformShear

XformTranslation