Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

drawing multipl polygons from array list of coordinates?

For general discussion related FlowStone

drawing multipl polygons from array list of coordinates?

Postby tester » Thu Jun 23, 2016 10:25 pm

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.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: drawing multipl polygons from array list of coordinates?

Postby billv » Fri Jun 24, 2016 11:59 pm

Try this...Hope it works for you.. :) ...
Polygon_list.fsm
(933 Bytes) Downloaded 935 times
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: drawing multipl polygons from array list of coordinates?

Postby tester » Sat Jun 25, 2016 11:01 am

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?

Postby tester » Sat Jun 25, 2016 7:46 pm

I made some little mad science. These tools can be useful sometimes for various measurements.
Attachments
polygons-lines.fsm
(1.92 KiB) Downloaded 913 times
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?

Postby billv » Sat Jun 25, 2016 10:20 pm

Nice work....I was just working on improving an old histogram attempt...
These are much better... ;) ..Cheers
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: drawing multipl polygons from array list of coordinates?

Postby RJHollins » Sun Jun 26, 2016 1:26 am

Nice Tester !

thx
8-)
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: drawing multipl polygons from array list of coordinates?

Postby tester » Sun Jun 26, 2016 5:12 pm

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.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet


Return to General

Who is online

Users browsing this forum: No registered users and 73 guests