Advertisement
arranb22

Untitled

Apr 1st, 2020
594
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. for (int32 x = 0; x < NodeCountX - 1; x++)
  2.     {
  3.         for (int32 y = 0; y < NodeCountY - 1; y++)
  4.         {
  5.            
  6.             // TopLeft  TopRight   BotRight  BotLeft
  7.             // [x,y+1]  [x+1,y+1]  [x+1,y]   [x,y]  
  8.             int32 CurrentNode = ((x*(NodeCountY)) + y);
  9.             Squares.Add(Square(ControlNodes[CurrentNodeTopLeft ], ControlNodes[CurrentNodeTopRight  ], ControlNodes[CurrentNodeBotRight  ], ControlNodes[CurrentNodeBotLeft]));
  10.  
  11.            
  12.         }
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement