ShearObject

Performs a shear transformation on a single object. Transformation is based on the active construction plane.

Syntax

rhinoscriptsyntax.ShearObject (object_id, origin, reference_point, angle_degrees, copy=False)

rhinoscript.object.ShearObject (object_id, origin, reference_point, angle_degrees, copy=False)

Parameters

object_id

Required. String or Guid. The identifier of the object to shear.

origin

Required. Point3d. The origin of the shear transformation.

reference_point

Required. Point3d. The reference point of the shear transformation.

angle_degrees

Required. Number. An angle in degrees of the shear transformation, where -90.0 <= angle <= 90.0.

copy

Optional. Boolean. Copy the object. If omitted, the object will not be copied (False).

Returns

Guid

The identifier of the sheared object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select object to shear")

if obj:

    origin = rs.GetPoint("Origin point")

    refpt = rs.GetPoint("Reference point")

    if origin and refpt:

        rs.ShearObject(obj, origin, refpt, 45.0, True)

Also See

ShearObjects