FlowObject

Re-aligns objects from a base curve to a target curve.

Syntax

Rhino.FlowObject (strObject, strCurve0, strCurve1 [, blnReverse0 [, blnReverse1 [, blnStretch [, blnCopy]]]])

Rhino.FlowObject (arrObjects, strCurve0, strCurve1 [, blnReverse0 [, blnReverse1 [, blnStretch [, blnCopy]]]])

Parameters

strObject

Required. String. The identifier of the object to deform.

arrObjects

Required. Array. An array of strings identifying the objects to deform.

strCurve0

Required. String. The identifier of the base curve.

strCurve1

Required. String. The identifier of the target curve.

blnReverse0

Optional. Boolean. Reverse the direction of strCurve0. The default is False.

blnReverse1

Optional. Boolean. Reverse the direction of strCurve1. The default is False.

blnStretch

Optional. Array. If False (Default), the length of the objects along the curve directions are not changed. If True, objects are stretched or compressed in the curve direction so that the relationship to the target curve is the same as it is to the base curve.

blnCopy

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

Returns

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.

Example

Dim strObject, strCurve0, strCurve1

strObject = Rhino.GetObject("Select object to flow")

If Not IsNull(strObject) Then

  strCurve0 = Rhino.GetObject("Base curve", 4)

  strCurve1 = Rhino.GetObject("Target curve", 4)

  Rhino.FlowObject strObject, strCurve0, strCurve1

End If

Also See

BendObject

BoxMorphObject

MaelstromObject

StretchObject

TaperObject

TwistObject