Returns a shear transformation matrix.
rhinoscriptsyntax.XformShear(plane, x, y, z)
rhinoscript.transformation.XformShear(plane, x, y, z)
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. |
Transform |
The 4x4 transformation matrix. |
None |
On error. |
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)