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.
Public
Static
ForEachCellIn3DArray<T>
(size, action)
Iterates over a 3D array.
Public
Static
ForEachCellIn3DSlice<T>
(slice, action)
Iterates over a slice of a 3D array.
Public
Static
ForEachCellIn3DSliceWithCoords<T>
(slice, action)
Iterates over a slice of a 3D array.
Public
Static
ForEachNode<T>
(arrayBounds, nodeNormals, callback)
Iterate through all nodes that exist.
Public
Static
GetNeighbourDataIndex
(bounds, nodeConnections, layeredDataLayout, dataX, dataLayer, dataZ, direction)
Returns the data index for a node's neighbour in the given direction.
Public
Static