Class BiGrid3<BlockType>
BiGrid3 is a two-level multiresolution grid data structure. You provide
exemplar object that implements suitable interfaces, and the class
automatically generates necessary data structures.
Functions to act on parent/child grids are in-progress...
Inheritance
BiGrid3<BlockType>
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class BiGrid3<BlockType>
where BlockType : class, IGridElement3, IFixedGrid3
Type Parameters
Name |
Description |
BlockType |
|
Constructors
BiGrid3(BlockType)
Declaration
public BiGrid3(BlockType exemplar)
Parameters
Type |
Name |
Description |
BlockType |
exemplar |
|
Properties
BlockGrid
Declaration
public DSparseGrid3<BlockType> BlockGrid { get; }
Property Value
BlockSize
Declaration
public Vector3i BlockSize { get; }
Property Value
Indexer
Declaration
public MultigridIndexer3 Indexer { get; }
Property Value
Methods
AllocatedBlocks()
Declaration
public IEnumerable<KeyValuePair<Vector3i, BlockType>> AllocatedBlocks()
Returns
Update(Index3i, Action<BlockType, Vector3i>)
map index into correct block and let client update that block at the correct local index
Declaration
public void Update(Index3i index, Action<BlockType, Vector3i> UpdateF)
Parameters