Text extrusion and triangulation experiments

By barcinski

extrusion

It seems that these days everyone is working on extrusion of some sort so I thought I post my experiments before it’s going to become yesterdays news :)

So what’s the big deal with extrusion? Well in order to do it well we first need to triangulate our vector shapes, not an easy feat in the first place but it gets really tricky when your shapes contain holes, I first used the “ear-cutting” method and then try cut out the holes form the triangulated shapes. That unfortunately created huge excess of vertices and triangles and before I could figure out how to fix it, Tim Knip has posted this fantastic method in alchemy form that triangulates polys with holes without creating any extra vertices! All I had to do I to find a way how to tell what is a hole and what isn’t, again it happend to be harder than it seems but my buggy code succeeds 90% of the time :P

Check out these examples:
example1, example2
you can download the code the but be warned it’s not in a very good condition.

Others have been exploring this subject as well, you can find their experiments here and here and here.

3 Responses to “Text extrusion and triangulation experiments”

  1. James Hight Says:

    Very nice!

    Do you still have any plans to implement triangulation using ActionScript?

  2. Mark Barcinski Says:

    Thanx James!

    I still have plans for porting triangulation to actionscript in the future, although I find this particular lib rather intimidating :P

  3. dudeguy Says:

    It’s ok to have a comment.

Leave a Reply