Method for triangulating a polygon?

Blitz3D Forums/Blitz3D Programming/Method for triangulating a polygon?

Craig H. Nisbet(Posted 2007) [#1]
Anyone know of a good techique for triangulating a multi(greater then 3) point polygon? The polygon I have doesn't exist as a renderable entity as far as blitz knows. It's just a list of points that define the outline of the polygon. When connected, the points define a 2d flat polygon shape.

I'd like to be able to convert this data into the 3d world as a mesh, but I don't know how to deal with the trangulation of the shape so it can be accurately displayed in 3d without having overlapping sections where the polygon go concave. Anyone know how to do this?




b32(Posted 2007) [#2]
I translated a program a while back, written by Ian Garton. The original program was written in Java.
Click with left to draw points, and with right to triangulate the polygon.



Stevie G(Posted 2007) [#3]
Jeppe Neilson's Tesselate lib in the code archives is excellent and I use an upgraded version for my 2d in 3d landscape creation ...