bboxIntersection()

Synopsis

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.

Syntax

bboxIntersection ( bboxes As List ) As List 
Argument Type Description
bboxes List The set of bounding boxes to be combined.

Exercise 1

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)}
Using the rules above
Intent >bboxIntersection({bbox1, bbox2})
--> {Point_(0.0, 0.0, 0.0, WorldFrame()), Point_(1.0, 3.0, 0.0, WorldFrame())}
No intersection returns an empty list
Intent >bboxIntersection({bbox2, bbox3})
--> {}