Convex filled polygons

Until our dedicated user library is in place you can post examples and modules here

Moderators: electrogear, exonerate

Re: Convex filled polygons

Postby trogluddite on Sat Aug 14, 2010 7:28 pm

mwvdlee wrote:Here's another regular polygon renderer

Excellent bit of lateral (or should that be radial?) thinking - just one line draw per vertex, I'd be very surprised if there's a faster way than that!
Feel free to use any schematics and algorithms I post on the forum in your own designs - a credit is appreciated (but not a requirement).
Don't stagnate, mutate to create. Without randomness and serendipity the earth would be just another barren rock.
User avatar
trogluddite
smychopath
 
Posts: 3024
Joined: Mon Oct 20, 2008 3:52 pm
Location: Yorkshire, UK

Re: Convex filled polygons

Postby mwvdlee on Sun Aug 15, 2010 6:14 am

trogluddite wrote:I'd be very surprised if there's a faster way than that!

Depends on how expensive the Arc primitive is compared to two Line primitives; you could use it to draw two edges with one operation.
My current top SynthMaker bug:
    1. MIDI Input issue (showstopper, no workaround)
    2. All my previous bugs in SM1.7, because bug 1 makes SM2 worse than SM1.7
User avatar
mwvdlee
smanatic
 
Posts: 552
Joined: Thu Dec 03, 2009 8:42 am
Location: NL

Re: Convex filled polygons

Postby mwvdlee on Sun Aug 15, 2010 11:30 am

Well, here's all my basic shape primitives pulled together from several different topics.
All of them work with alpha color now through the use of a bitmap cache where required.
These will probably go unchanged in my next MissingLinks release.
Filled Polygons.osm
(23.35 KiB) Downloaded 144 times
My current top SynthMaker bug:
    1. MIDI Input issue (showstopper, no workaround)
    2. All my previous bugs in SM1.7, because bug 1 makes SM2 worse than SM1.7
User avatar
mwvdlee
smanatic
 
Posts: 552
Joined: Thu Dec 03, 2009 8:42 am
Location: NL

Re: Convex filled polygons

Postby rl on Sun Aug 15, 2010 7:19 pm

cool technique - 'never thought about doing it this way...
User avatar
rl
dsp wiz
 
Posts: 1494
Joined: Mon Feb 07, 2005 10:24 pm
Location: de.earth.universe.known

Re: Convex filled polygons

Postby MegaHurtz on Sun Aug 15, 2010 7:51 pm

Yep cool it can be done, and quite quick indeed.
Visit my website at: http://www.schlukhash.nl
User avatar
MegaHurtz
smaniac
 
Posts: 1512
Joined: Mon Aug 11, 2008 5:29 pm
Location: Eindhoven/Netherlands

Re: Convex filled polygons

Postby Jay on Sun Aug 15, 2010 11:37 pm

cool stuff! will use these no end! :)

Thanks mwvdlee!
The history of science shows that theories are perishable.With every new truth that is revealed,we get a better understanding of Nature and our conceptions and views are modified. - Nikola Tesla.
http://www.energeticforum.com/renewable-energy/
Jay
essemilian
 
Posts: 468
Joined: Mon Sep 22, 2008 7:20 pm
Location: Scotland.UK

Previous

Return to Examples

Who is online

Users browsing this forum: No registered users and 1 guest

cron