Class GridIterationUtilities
Public
Helpers for iterating over grid graph data.
This is a helper for iterating over grid graph data, which is typically stored in an array of size width*layers*depth (x*y*z). It is used internally by grid graph jobs, and can also be used by custom grid graph rules.
Inner Types
Public Static Methods
FilterNodeConnections<T>
(bounds, nodeConnections, layeredDataLayout, filter)
Iterate through all enabled connections of all nodes.
GetNeighbourDataIndex
(bounds, nodeConnections, layeredDataLayout, dataX, dataLayer, dataZ, direction)
Returns the data index for a node's neighbour in the given direction.