polygonInside?()

概要

を返します。 poly2 が完全に poly1 の内側にある場合は True をクリックします。

ポリゴン(Polygons) points list によって 「 最適化 」 のように表示されます。 最初の 3 つの同一線上にない points がポリゴンの 「 平面 」 を定義し 、 points の残りの部分はその面に配置されていない場合でも、すべての計算でその平面に投影されます。

構文

polygonInside? ( poly1 As List, _
                 poly2 As List ) As Boolean 
引数 [タイプ] 説明
poly1 List 1 番目の「外側の」ポリゴンです。
poly2 List テストする 2 番目のポリゴンです。

例 1

Intent >polygonInside?({point(0,0,0), Point(5,0,0), Point(5,5,0), Point(0,5,0)}, {Point(1,1,0), Point(6,1,0), Point(6,4,0), Point(1,4,0)}) 
--> False 

例 2

Intent >polygonInside?({point(0,0,0), Point(5,0,0), Point(5,5,0), Point(0,5,0)}, {Point(1,1,0), Point(4,1,0), Point(4,4,0), Point(1,4,0)}) 
--> True