M-File Help: plot_poly View code for plot_poly

plot_poly

Draw a polygon

plot_poly(p, options) adds a polygon defined by columns of p (2xN), in the current plot with default line style.

H = plot_poly(p, options) as above but processes additional options and returns a graphics handle.

Animation

plot_poly(H, T) sets the pose of the polygon with handle H to the pose given by T (3x3 or 4x4).

Create a polygon that can be animated, then alter it, eg.

H = PLOT_POLY(P, 'animate', 'r')
PLOT_POLY(H, transl(2,1,0) );

OPTIONS

'fillcolor',F the color of the circle's interior, MATLAB color spec

'alpha', A transparency of the filled circle: 0=transparent, 1=solid.

'edgecolor',E edge color

'animate' the polygon can be animated
'tag', T the polygon is created with a handle graphics tag

Notes

See also

plot_box, plot_circle, patch, Polygon


 

© 1990-2014 Peter Corke.