bboxUnion()

概要

bboxes のセット(ブール演算和)を区切る境界領域を返します。

バウンディング ボックスの 2 つの points list によって表されます。 最初の point 最小 X、Y を表し、バウンディング ボックスの Z 座標を、2 番目の point point [ 最大値を表します。 これにより、境界領域は常にワールド座標軸に位置合わせされます。

構文

bboxUnion ( bboxes As List ) As List 
引数 [タイプ] 説明
bboxes List 結合する境界領域のセットです。

例 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())}