View Full Version : Calculating triangles.

01-07-2003, 01:03 PM
A perhaps silly question, but how
do I take a L shaped lineloop of which I know all vertex coordinates and
calculate how my triangles must be draw?

I'm making an editor and when drawing an irregular shape and use the vertex coordinates
as vertices for GL_POLYGON, it uses GL_TRIANGLE_FAN or something like that and that makes my shape look really ugly.

If you want to download the editor ile-0.0.2.tar.gz (http://www.geocities.com/red15_nh/ile-0.0.2.tar.gz)

It has a complete ''manual'' just check it out. If you compile it on a windows box, please send a copy to red15_nh@hotmail.com

Thanks a lot.

Edit: Sorry, now link works.

[This message has been edited by Red15 (edited 01-07-2003).]

[This message has been edited by Red15 (edited 01-07-2003).]

Stack Overflow
01-07-2003, 01:18 PM
The link is here

ile-0.0.2.tar.gz (http://www.geocities.com/red15_nh/ile-0.0.2.tar.gz)

Copy the shortcut and paste it into your address bar.


[This message has been edited by VC6-OGL (edited 01-07-2003).]