Initializes the grid structure based on the currently known environments and the specified sizes.
On initialization, the whole grid memory is (re-)allocated, which might cause GC for old grid data if there was any.
- Parameters
-
environments | A list containing all known AIMEnvironment instances. |
cellCountX | The number of grid cells in x-direction. |
cellCountY | The number of grid cells in y-direction. |
cellCountZ | The number of grid cells in z-direction. |
- Exceptions
-
NullReferenceException | If environments is null . |