Guest User

Untitled

a guest
Apr 16th, 2015
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.23 KB | None | 0 0
  1.   var indices = newSeq[uint32](mesh.faceCount * 3)
  2.   for i in 0..mesh.faceCount:
  3.     let face = mesh.faces[i]
  4.     indices[i * 3 + 0] = face.indices[0]
  5.     indices[i * 3 + 1] = face.indices[1]
  6.     indices[i * 3 + 2] = face.indices[2]
Advertisement
Add Comment
Please, Sign In to add comment