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

Callback struct for ForEachCellIn3DArray.

Helper interface for modifying node connections.

Helper interface for modifying nodes.

Callback struct for ForEachCellIn3DSlice.

Public Static Methods

FilterNodeConnections<T> (bounds, nodeConnections, layeredDataLayout, filter)

Iterate through all enabled connections of all nodes.

ForEachCellIn3DArray<T> (size, action)

Iterates over a 3D array.

ForEachCellIn3DSlice<T> (slice, action)

Iterates over a slice of a 3D array.

Iterates over a slice of a 3D array.

ForEachNode<T> (arrayBounds, nodeNormals, callback)

Iterate through all nodes that exist.

GetNeighbourDataIndex (bounds, nodeConnections, layeredDataLayout, dataX, dataLayer, dataZ, direction)

Returns the data index for a node's neighbour in the given direction.