grid_ceil

photonforge.grid_ceil(value)

Snap the value to the current grid rounding towards \(+\infty\).

Parameters:

value (float | Sequence[float] | Sequence[Sequence[float]]) – Value or sequence of values to snap.

Returns:

Value snapped to the grid.

Return type:

float | ndarray

See also

config.grid