drawing multipl polygons from array list of coordinates?

For general discussion related FlowStone
Post Reply
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

drawing multipl polygons from array list of coordinates?

Post by tester »

Drawing polygon in ruby is one thing. I'm looking for something, that would draw multiple polygons from array list like this (or from 4 paralel arrays, for x,y,w,h parameters):

x1,y1,w1,h1
x2,y2,w2,h2
...

so that the drawing updates as the input array changes.

I need to deal with some datasets for an approaching conference. :mrgreen:
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: drawing multipl polygons from array list of coordinates?

Post by billv »

Try this...Hope it works for you.. :) ...
Polygon_list.fsm
(933 Bytes) Downloaded 996 times
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: drawing multipl polygons from array list of coordinates?

Post by tester »

Thanks billv, this should to the job.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: drawing multipl polygons from array list of coordinates?

Post by tester »

I made some little mad science. These tools can be useful sometimes for various measurements.
Attachments
polygons-lines.fsm
(1.92 KiB) Downloaded 971 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: drawing multipl polygons from array list of coordinates?

Post by billv »

Nice work....I was just working on improving an old histogram attempt...
These are much better... ;) ..Cheers
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: drawing multipl polygons from array list of coordinates?

Post by RJHollins »

Nice Tester !

thx
8-)
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: drawing multipl polygons from array list of coordinates?

Post by tester »

I'm glad, that this is useful to someone else too. :mrgreen:
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Post Reply