PointArrayBoundingBox - PYTHON 暂不支持此函数

Returns either a world axis-aligned or a construction plane axis-aligned bounding box of an array of 3-D point locations.

语法

Rhino.PointArrayBoundingBox (arrPoints [, strView [, blnWorldCoords]])

参数

arrPoints

Required.Array.An array of 3-D points.

strView

可选参数。字符串。The title of the view that contains the construction plane to which the bounding box should be aligned.If omitted, a world axis-aligned bounding box will be calculated.

blnWorldCoords

可选参数。Boolean.Whether or not to return the bounding box as world coordinates or construction plane coordinates.The default is to return world coordinates (True).Note, this option does not apply to world axis-aligned bounding boxes.

返回值

Array

An array of eight 3-D points that define the bounding box if successful.Points are returned in counter-clockwise order starting with the bottom rectangle of the box.See the image below for details.

Null

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

示例

Dim arrPoints, arrBox, arrPoint, intCount

arrPoints = Rhino.GetPoints()

If IsArray(arrPoints) Then

arrBox = Rhino.PointArrayBoundingBox(arrPoints)

If IsArray(arrBox) Then

intCount = 0

For Each arrPoint In arrBox

Rhino.AddTextDot CStr(intCount), arrPoint

intCount = intCount + 1

Next

End If

End If

同见

BoundingBox