I am trying to understand the math equations from Developing Build a House from a Floorplan - Babylon.js Documentation
Then the base for wall w, consists of corners numbered, w, (w + 1) % nbWalls, w + nbWalls, (w + 1) % nbWalls + nbWalls. See Fig 2.
If we assume that:
- wall w = wall 3
- nbWalls = 6
Then it means that the rest of the corners can be found as
- w = corner 3 ?
- (w + 1) % nbWalls = corner 4 ?
- w + nbWalls = corner 9 ?
- (w + 1) % nbWalls + nbWalls = corner 10 ???
If so, can someone give me a numerical example for caluclating (w + 1) % nbWalls ?