OrientObjects - PYTHON 不支持

Orients one or more objects based on input points.

语法

Rhino.OrientObjects (arrObjects, arrReference, arrTarget [, intFlags])

参数

arrObjects

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

arrReference

Required.Array.An array of 3-D reference points.If two 3-D points are specified, then this method will function similar to Rhino's Orient command.If more than two 3-D points are specified, then the function will orient similar to Rhino's Orient3Pt command.

arrTarget

Required.Array.An array of 3-D target points.If two 3-D points are specified, then this method will function similar to Rhino's Orient command.If more than two 3-D points are specified, then the function will orient similar to Rhino's Orient3Pt command.

intFlags

可选参数。Number.The orient flags.Values can be added together to specify multiple options.

描述

1

Copy object.The default is not to copy the objects.

2

Scale object.The default is not to scale the objects.Note, the scale option only applies if both arrReference and arrTarget contain only two 3-D points.

返回值

Array

An array of strings identifying the oriented objects if successful.

Null

如果执行不成功或出错,返回空值。

示例

Dim arrObjects, arrReference, arrTarget

arrObjects = Rhino.GetObjects("Select objects to orient")

If IsArray(arrObjects) Then

arrReference = Rhino.GetPoints(,,"First reference point")

If IsArray(arrReference) And (UBound(arrReference) > 0) Then

arrTarget = Rhino.GetPoints(,,"First target point")

If IsArray(arrTarget) And (UBound(arrTarget) > 0) Then

Rhino.OrientObjects arrObjects, arrReference, arrTarget

End If

End If

End If

同见

OrientObject