CellGridRenderer3D Module
Optional renderer helper for CellGrid3D. Provides convenience methods for iterating and rendering grid contents.
Functions and values
| Function or value |
Description
|
Full Usage:
render grid renderCell
Parameters:
CellGrid3D<'T>
-
The grid to render.
renderCell : Vector3 -> 'T -> unit
-
Function to call for each populated cell with (worldPosition, content).
Modifiers: inline Type parameters: 'T |
Iterates over all populated cells and invokes renderCell with the world position and content.
|
Full Usage:
renderVolume bounds grid renderCell
Parameters:
BoundingBox
-
The world-space bounding box to filter by.
grid : CellGrid3D<'T>
-
The grid to render.
renderCell : Vector3 -> 'T -> unit
-
Function to call for each visible cell.
Modifiers: inline Type parameters: 'T |
Iterates over populated cells within a bounding volume and invokes renderCell. Use this for frustum culling optimization.
|
Full Usage:
renderWithIndices grid renderCell
Parameters:
CellGrid3D<'T>
renderCell : int -> int -> int -> Vector3 -> 'T -> unit
Modifiers: inline Type parameters: 'T |
Iterates over all populated cells and provides grid coordinates along with world position. Useful when you need both grid indices and world positions.
|
Mibo