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