
3
New Adjacency Primitives (and what they do by default)
Lines with Adjacency
0123
Line Strip with Adjacency
123450
4N vertices are given.
(where N is the number of line segments to draw).
A line segment is drawn between #1 and #2.
Vertices #0 and #3 are there to provide adjacency information.
mjb – May 10, 2009
N+3 vertices are given
(where N is the number of line segments to draw).
A line segment is drawn between #1 and #2, #2 and #3, …, #N and #N+1.
Vertices #0 and #N+2 are there to provide adjacency information.
N = 3
Triangles with Adjacency
1
2
3
New Adjacency Primitives (and what they do by default)
5
04
5
9
6N vertices are given
(where N is the number of triangles to draw).
Points 0, 2, and 4 define the triangle.
Points 1, 3, and 5 tell where adjacent triangles are.
N = 1
mjb – May 10, 2009
Triangle Strip with Adjacenc
1
3
0
4
7
8
11
4+2N vertices are given
(where N is the number of triangles to draw).
Points 0, 2, 4, 6, 8, 10, …define the triangles.
Points 1, 3, 5, 7, 9, 11, … tell where adjacent triangles are.
N = 4
评论9
最新资源