Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         Local v:Int
  2.         For Local i:Int = 0 Until Size
  3.             If vPoint0[i] Then
  4.                 surf.AddVertex(vPoint0[i].y * MeshScale, vPoint0[i].z * MeshScale, vPoint0[i].x * MeshScale)
  5.                 surf.AddVertex(vPoint1[i].y * MeshScale, vPoint1[i].z * MeshScale, vPoint1[i].x * MeshScale)
  6.                 surf.AddVertex(vPoint2[i].y * MeshScale, vPoint2[i].z * MeshScale, vPoint2[i].x * MeshScale)
  7.                
  8.                 surf.AddTriangle(v, v + 2, v + 1)
  9.                
  10.                 'Last mystery vertex!
  11.                 surf.AddVertex(vPoint2[i].y * MeshScale, vPoint0[i].z * MeshScale, vPoint1[i].x * MeshScale)
  12.                 'surf.AddTriangle(v, v + 3, v + 2)
  13.                
  14.                 v:+4
  15.             EndIf
  16.         Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement