Verifies an object's bounding box is inside of another bounding box.
Rhino.IsObjectInBox (strObject, arrBox, [blnMode])
strObject |
Required. String. The identifier of an object. |
||||||
arrBox |
Required. Array. The bounding box to test against. A bounding box is an array of eight 3-D points that define the corners of the box. Points need to be in counter-clockwise order starting with the bottom rectangle of the box. |
||||||
blnMode |
Optional. Boolean. The test mode.
|
True |
The object is inside the bounding box. |
False |
The object is not inside the bounding box. |
Null |
On error. |
Dim arrBox, arrObjects strObject
arrBox = Rhino.GetBox
If IsArray(arrBox) Then
Rhino.EnableRedraw False
arrObjects = Rhino.AllObjects
For Each strObject In arrObjects
If Rhino.IsObjectInBox(strObject, arrBox, False) Then
Rhino.SelectObject strObject
End If
Next
Rhino.EnableRedraw True
End If