XformShear

Returns a shear transformation matrix.

Syntax

rhinoscriptsyntax.XformShear(plane, x, y, z)

rhinoscript.transformation.XformShear(plane, x, y, z)

Parameters

plane

Required.  The plane, where plane[0] is the fixed point.

x

Required.  List of 3 numbers, Point3d, or Vector3d.  The x-axis scale factor.

y

Required.  List of 3 numbers, Point3d, or Vector3d.  The y-axis scale factor.

z

Required.  List of 3 numbers, Point3d, or Vector3d.  The z-axis scale factor.

Returns

Transform

The 4x4 transformation matrix.

None

On error.

Example

import rhinoscriptsyntax as rs

objects = rs.GetObjects("Select objects to shear")

if objects:

    cplane = rs.ViewCPlane()

    xform = rs.XformShear(cplane, (1,1,0), (-1,1,0), (0,0,1))

    rs.TransformObjects(objects, xform, True)

Also See

XformMirror

XformPlanarProjection

XformRotation

XformScale

XformTranslation