Building 3D shapes
Building indexed geometry
- For surfaces, the same vertices are used for adjacent
lines and triangles
- Simple and strip geometry require redundant coordinates,
lighting normals, colors, and texture coordinates
- Indexed geometry uses indices along with the usual
lists of coordinates, lighting normals, etc.
- Indices select coordinates to use from your list
- Use a coordinate multiple times, but give it only once
- Indices also used for lighting normals, colors, and
texture coordinates