Triangle Strip (trnglStr)

key: trngl

type: iii(i)*

  1. integer: vertex index.
  2. integer: vertex index.
  3. integer: vertex index.

Description

A triangle strip which is a set of triangles where each triangle shares two vertices with the preceding triangle. The first three indices define a triangle and then each additional index defines another triangle by using the two preceding indices.

Conventions

By convention the first triangle is right handed and then the handedness flips for each successive triangle. Useful because triangle strips are much faster to render on some architectures.

Examples

msh  % a two triangle mesh as a triangle strip
"" mtrlNm "mat" end
   vrtxPstn
     0.5 -0.5 0.0
     0.5  0.5 0.0
     -0.5  0.5 0.0
     -0.5 -0.5 0.0
   end
   vrtxUV    % used for texture mapping
     1.0 0.0
     1.0 1.0
     0.0 1.0
     0.0 0.0
   end
   trnglStr
     1 2 0 3
   end
end