PolygonPlot.ClosePolygons

Prototypes

void ClosePolygons( <boolean bClose> )

Parameters

boolean bClose
If bClose is true, the first and last coordinate pairs of each polygon are connected with a line segment. If bClose is false, the first and last coordinate pairs of each polygon are not connected with a line segment. Calling this method without a parameter is equivalent to calling it with bClose equal to true.

Remarks

This method controls whether the first and last coordinate pairs of each polygon are connected with a line segment.

Example
x  = { 0, 1, 1, 0, 1.5, 2, 1 };
y  = { 0, 0, 1, 1, 1,   2, 2 };
id = { 1, 1, 1, 1, 2,   2, 2 };
declare PolygonPlot plot = PolygonPlot.Create( "Shapes", x, y, id );
plot.ClosePolygons( false );
See Also

PolygonPlot.FillPolygons