Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. int[] triangles = new int[tri * 3];
  2.  
  3. for (int t = 0; t < tri; t++)
  4. {
  5. int triangleIndex = t * 6;
  6.  
  7. print(triangleIndex);
  8.  
  9. triangles[triangleIndex + 0] = 0;
  10. triangles[triangleIndex + 1] = 3;
  11. triangles[triangleIndex + 2] = 1;
  12.  
  13. triangles[triangleIndex + 3] = 3;
  14. triangles[triangleIndex + 4] = 4;
  15. triangles[triangleIndex + 5] = 1;
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement