Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. [
  2. [
  3. [
  4. [xCoordinate1, yCoordinate1, zCoordinate1],
  5. [xCoordinate2, yCoordinate2, zCoordinate2],
  6. [xCoordinate3, yCoordinate3, zCoordinate3]
  7. ]
  8. ]
  9. ]
  10.  
  11. List<List<List<List<double>>>> coordinates = new List<List<List<List<double>>>>();
  12.  
  13. foreach (var coordinate in Coordinates) {
  14. coordinates.Add({ coordinate.X, coordinate.Y, coordinate.Z })
  15. }
  16.  
  17. double[, , ,] coordinates = {
  18. {
  19. {
  20. { coordinate.X, coordinate.Y, coordinate.Z },
  21. { coordinate.X, coordinate.Y, coordinate.Z },
  22. { coordinate.X, coordinate.Y, coordinate.Z }
  23. }
  24. }
  25. };
  26.  
  27. int[,,,] array3D = new int[,,,] {
  28. {
  29. {
  30. { 1, 2, 3 },
  31. { 4, 5, 6 }
  32. //How can I add more here dynamically?
  33. }
  34. }
  35. };
  36.  
  37. array3D[0, 0, 0, 3] = { 7, 8, 8 }; //This doesn't do the trick :(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement