Advertisement

How to subdivide Polygons the right way?

Started by September 05, 2001 04:29 AM
-1 comments, last by Doc_Holiday 23 years, 5 months ago
My Problem is: How do I have to subdivide Polygones in triangles? like this: (Its code for VB, but the thing i want to now is the same) (Begin of Polygon which should be subdivided) glBegin(GL_Polygon) glVertex3f -3#, 0#, 0# glVertex3f 3#, 0#, 0# glVerte3f 1.5, 2#, 0# glEnd glBegin(GL_Polygon) glVertex3f 1.5, 2#, 0# glVertex3f 3#, 0#, 0# glVertex3f 4#, 1.5, 0# glEnd (end of P which should be subdivided) or this way: glBegin (triangles) glVertex3f -3#, 0#, 0# glVertex3f 3#, 0#, 0# glVerte3f 1.5, 2#, 0# glVertex3f 1.5, 2#, 0# glVertex3f 3#, 0#, 0# glVertex3f 4#, 1.5, 0# glEnd What is the faster way to draw? Whats the standart? Or is both of this a fault and could someone show me the right?

This topic is closed to new replies.

Advertisement