bboxUnion()

Synopsis

Returns the bounding box which bounds the set (Boolean union) of bboxes.

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

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

Example 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)}
Intent >bboxUnion({bbox1, bbox2})
--> {Point_(-5.0, -2.0, 0.0, WorldFrame()), Point_(10.0, 10.0, 0.0, WorldFrame())}
Intent >bboxUnion({bbox1, bbox3})
--> {Point_(0.0, 0.0, 0.0, WorldFrame()), Point_(13.0, 10.0, 0.0, WorldFrame())}
Intent >bboxUnion({bbox2, bbox3})
--> {Point_(-5.0, -2.0, 0.0, WorldFrame()), Point_(13.0, 9.0, 0.0, WorldFrame())}
Intent >bboxUnion({bbox1, bbox2, bbox3})
--> {Point_(-5.0, -2.0, 0.0, WorldFrame()), Point_(13.0, 10.0, 0.0, WorldFrame())}