Grid
Grid extends Ngraph to form a rectilinear grid of objects (as in
finite differences). Neighbors can be chosen in positive and negative
directions along the coordinate axes.
Implementations:
- Grid_Default
The grid is defined by finding closest neighbors in a base ngraph
in the grid directions.
Member functions:
- has_neighbor: Grid . SObject . int axis . int dir -> bool
Returns whether or not the object has a neighbor along the given axis
(0, 1, 2, ...) in the given direction (-1 or 1).
- neighbor: Grid . SObject . int axis . int dir -> Obj
Returns the neighboring object (required to exist) along the given
axis in the given direction.