bboxIntersection()

概要

指定された境界領域のセットに共通する(ブーリアン論理積)ボリュームを示す境界領域を返します。

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

構文

bboxIntersection ( 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 >bboxIntersection({bbox1, bbox2})
--> {Point_(0.0, 0.0, 0.0, WorldFrame()), Point_(1.0, 3.0, 0.0, WorldFrame())}
交差は空の list を返します。
Intent >bboxIntersection({bbox2, bbox3})
--> {}