( ** Go back to PARENTPAGE ../RANDOM-POLYGONS-IN-THREE-2D-PLANES.html)
( ** Go back to HOMESITE https://www.tcnd.com)
( ** Go back to SetSphere https://www.setsphere.com)

Workspace POLY3PLANES showing set operations on polygons in three 2D planes

The workspace POLY3PLANES shows how to do contextual set operations on geometric data (polygons in 2D plane). Find the intersections of the polygons in three 2D planes, and find the difference of polygons in the three 2D planes. ASPL operators can be used in GEO workspaces to turn f& and f\ into geometric set operators to do contextual set operations on geometric data.

ASPL 1> egCwhoami
ping the GEOPLANES container, this is informational

ASPL 2> ks x1 y1 x2 y2 x3 y3
set the ks vector to shorten the displayed data

ASPL 3> T123_70 = ggRPI3Pov(N,70,glb1,T1,glb2,T2,glb3,T3,nmfl,T123_70)
get random polygons in 3 planes also generate named data in ~tmp

ASPL 4> split T123_70 into T1 T2 T3
split the variable T123_70 for the three planes

ASPL 5> f& T1 T2 T3
intersect the three planes

ASPL 6> f\ T1 T2 T3
get the difference between 1st plane and the other two planes

ASPL 7> ans
see the answer stack

ASPL 8> pop T1_23
pop the stack result into variable T1_23

ASPL 9> pop T123
pop the stack result into variable T123

ASPL 10> ans
see the answer stack

ASPL 11> v
display the variables in the symbol table

ASPL 12> dumpgad T123_70
dump GADg of T123_70 writing it to a file in ~tmp directory

ASPL 13> dumpgad T1_23
dump GADg of T1_23 writing it to a file in ~tmp directory

ASPL 14> dumpgad T123
dump GADg of T123 writing it to a file in ~tmp directory

ASPL 15> hs
see history of commands

ASPL 16> bye
this will save everything and quit.. sweet!