Deforms objects by bending along a spine arc.
Rhino.BendObject (strObject, arrStartPoint, arrEndPoint, arrArcPoint [, dblAngle, [, blnLimit [, blnSymmetric [, blnCopy]]]])
Rhino.BendObject (arrObjects, arrStartPoint, arrEndPoint, arrArcPoint [, dblAngle, [, blnLimit [, blnSymmetric [, blnCopy]]]])
strObject |
Required. String. The identifier of the object to deform. |
arrObjects |
Required. Array. An array of strings identifying the objects to deform. |
arrStartPoint |
Required. Array. The starting point of a spine line that represents the original orientation of the object. |
arrEndPoint |
Required. Array. The ending point of the spine line. |
arrArcPoint |
Required. Array. The point to bend through. |
dlbAngle |
Required. Number. The bend angle in degrees. If specified, then arrArcPoint is used to specify bend direction. |
blnLimit |
Optional. Boolean. If False (Default), then arrArcPoint determines the region to bend. If true, only the spine region is bent. |
blnSymmetric |
Optional. Boolean. If False (Default), then only one end of the object bends. If True, then the object will bend symmetrically around the center if you start the spine in the middle of the object. |
blnCopy |
Optional. Boolean. Copy the object. If omitted, the object(s) will not be copied (False). |
String |
The identifier of the deformed object if successful. |
Array |
An array of strings identifying the deformed objects if successful. |
Null |
If not successful, or on error. |
Dim strObject, arrStart, arrEnd, arrArc
strObject = Rhino.GetObject("Select object to bend")
If Not IsNull(strObject) Then
arrStart = Rhino.GetPoint("Start of spine")
arrEnd = Rhino.GetPoint("End of spine", arrStart)
arrArc = Rhino.GetPoint("Point to bend through")
Rhino.BendObject strObject, arrStart, arrEnd, arrArc, , , , False
End If