Header menu logo Mibo

CellGridRenderer3D Module

Optional renderer helper for CellGrid3D. Provides convenience methods for iterating and rendering grid contents.

Functions and values

Function or value Description

render grid renderCell

Full Usage: render grid renderCell

Parameters:
    grid : 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.

grid : CellGrid3D<'T>

The grid to render.

renderCell : Vector3 -> 'T -> unit

Function to call for each populated cell with (worldPosition, content).

renderVolume bounds grid renderCell

Full Usage: renderVolume bounds grid renderCell

Parameters:
    bounds : 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.

bounds : 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.

renderWithIndices grid renderCell

Full Usage: renderWithIndices grid renderCell

Parameters:
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.

grid : CellGrid3D<'T>
renderCell : int -> int -> int -> Vector3 -> 'T -> unit

Type something to start searching.