void setData (double[][] _data)
Sets the coordinates of the complete polygon at
once. data is an array on [nPoints][2] with the (x,y) coordinates
of each points..
public double[][] getData ()
Return the actual array of internal data. You should
not modify this array directly, but through setData above. Strangely
enough, the array returned is an array of [3][nPoints] doubles,
because each point has a deprecated
z coordinate and the data is organized by columns.
void setConnected (int _index, boolean _c)
Whether the point with given index is connected
to the next point.
void setConnections (boolean[] _c)
Sets the coonnection feature of all points at once.
The i-th element in the array indicates whether the i-th point is connected
to the next point.