FILLPOLYGON Fill a polygon specified by a list of points.
fillPolygon(POLY);
Fills the interior of the polygon specified by POLY. The boundary of
the polygon is not drawn, see 'drawPolygon' to do it.
POLY is a single [N*2] array.
If POLY contains NaN-couples, each portion between the [NaN;NaN] will
be filled separately.
fillPolygon(PX, PY);
Specifies coordinates of the polygon in separate arrays.
H = fillPolygon(...);
Also returns a handle to the created patch
See also:
polygons2d, drawCurve, drawPolygon
Package: matgeom