PolyTry in the Code Archives...

Blitz3D Forums/Blitz3D Programming/PolyTry in the Code Archives...

fredborg(Posted 2003) [#1]
Hi,

I've finally gotten around to adding my PolyTry conversion to the code archives

::PolyTry Blitz Flavor::

Have fun!
Ohh, I gave up on the retriangulation stuff, as it had some problems with shallow angles :(


Ian Thompson(Posted 2003) [#2]
Very very cool Fredborg!


Pepsi(Posted 2003) [#3]
You did a really nice job on this, Fredborg!


Jeroen(Posted 2003) [#4]
what does it do? I don't understand it


fredborg(Posted 2003) [#5]
Then you probably don't need it :)

Brief explanation: It triangulates a polygon. Which means it takes a number of points order in sequence to form the outline of a shape, and then calculates how this shape can be made 'solid' by filling the stuff inbetween the outline with triangles. This is pretty tricky, and this code only works for 'simple' polygons, with no holes in them.

What can it be used for? A lot of things, mostly it is useful for triangulating complex polygons (with more than 4 vertices), which is exported from some 3D programs. Other than that, it can be used for selection tools etc. But it's not something many people need, it's useful for some things, but mostly nothing to do with making games :)

Try the example included, it should show what it does.


TeraBit(Posted 2003) [#6]
Cool stuff. I've just got to get the time to add this to my convertors so thay can handle n-gons from LightWave etc.

Time eh.. where can I get some.. ;)


Jeroen(Posted 2003) [#7]
Heh, I certainly don't need it then, but nice work anyway :)