[Scilab-Dev] xrpoly: drawing of many polygons of the same type
Samuel Gougeon
sgougeon at free.fr
Sat Mar 30 03:14:37 CET 2013
Hi Stanislav,
Le 20/03/2013 13:55, Stanislav a écrit :
> SEP_088_xrpoly.odt
> <http://mailinglists.scilab.org/file/n4026306/SEP_088_xrpoly.odt>
This vectoriation is a good idea! I agree that implementing it in the
same function
as for only one polygon is much preferable, w.r.t. coding a specific
xrpoly*s*()
function as it has been done for most of other functions plotting
geometrical
shapes : xrect > xrects, etc..
Since a SEP is running, here are some ideas of other possible developments
for new features:
- why not *vectorizing also n, r and theta*? (with default = scalar)
- *filling = filling_color* (optional): to fill the polygon(s) with
respective
colors (vector of indices in the color_map).
a color<0 means that the line (border) must not be plotted.
- *symbol=[symbol_numbers, symbol_sizes]*: to put a symbol on the angles
(the same on all angles, but may be different from a polygon to
another one
=> vectorized = mx2 matrix).
- *isoview=%t* option, to force the targetted axes to be isometric to show
a truly regular polygonal (see the present mis-shaped sample in help
xrpoly)
- *showAll=%t* option: => enlarge axes bounds up to the external bounds of
generated polygons
- returning the *vector of created handles*
xrpoly([0.5 0.5], 12, 0.4, symbol=[14, 8], filling=-color("cyan"),
isoview=%t)
// would display (for a single polygon)
Hoping reading you soon
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20130330/fb581128/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gchbecgg.png
Type: image/png
Size: 4835 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20130330/fb581128/attachment.png>
More information about the dev
mailing list