9. Meshes

Brock University
COSC 3P98 Computer Graphics
Instructor: Brian J. Ross



Models


Polygon models


Polygon meshes


Examples of polygon meshes

Face list for the prism
 Face number Vertices
1  1, 3, 2
 2  6, 2, 3, 4
 3  1, 5, 4, 3
 4 4, 5, 6 
 5  1, 2, 6, 5


Building meshes

glBegin(GL_TRIANGLE_STRIP);
   glVertex3fv(A);
   glVertex3fv(B);
   glVertex3fv(C);
   glVertex3fv(D);
   glVertex3fv(E);
...
glEnd();


Building meshes


Data structures for meshes


Meshes




Back to COSC 3P98 index

COSC 3P98 Computer Graphics
Brock University
Dept of Computer Science
Copyright © 2020 Brian J. Ross (Except noted figures).
http://www.cosc.brocku.ca/Offerings/3P98/course/lectures/modeling/mesh.html
Last updated: February 1, 2023