Returns the bounding box representing the volume which is common (Boolean intersection) to a set of provided bounding boxes.
Bounding boxes are represented by a list of two points . The first point represents the minimum x, y, and z coordinates of the bounding box, and the second point represents the maximum point . Thus the bounding box is always aligned with the world coordinate axes.
bboxIntersection ( bboxes As List ) As List
Argument | Type | Description |
---|---|---|
bboxes | List | The set of bounding boxes to be combined. |
Rule bbox1 As List = {Point(0,0,0), Point(10,10,0)} Rule bbox2 As List = {Point(-5,-2,0), Point(1,3,0)} Rule bbox3 As List = {Point(5,2,0), Point(13,9,0)}
Intent >bboxIntersection({bbox1, bbox2}) --> {Point_(0.0, 0.0, 0.0, WorldFrame()), Point_(1.0, 3.0, 0.0, WorldFrame())}
Intent >bboxIntersection({bbox2, bbox3}) --> {}