public void add ( Color color , Point3D_F64 ... polygon ) { final Poly p = new Poly ( polygon . length , color ) ; for ( int i = 0 ; i < polygon . length ; i ++ ) p . pts [ i ] = polygon [ i ] . copy ( ) ; synchronized ( polygons ) { polygons . add ( p ) ; } }
Adds a polygon to the viewer . GUI Thread safe .