polygonInside?()

Synopsis

Returns True if poly2 lies completely inside poly1.

Polygons are represented in a "lightweight" way by a list of points . The first three non-colinear points define the "plane" of the polygon, and even if the rest of the points do not lie in that plane, they will be projected onto that plane for all computations.

Syntax

polygonInside? ( poly1 As List, _
                 poly2 As List ) As Boolean 
Argument Type Description
poly1 List The first "outer" polygon.
poly2 List The second polygon to be tested.

Example 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 

Example 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