unilab.terrains.terrain_generator.HeightfieldSurfaceSampler

class unilab.terrains.terrain_generator.HeightfieldSurfaceSampler[source]

Bases: object

Compact world-space sampler for a generated hfield surface.

Parameters:

Methods

__init__(heights_uint16, horizontal_scale, ...)

sample_height(xy)

Attributes

heights_uint16: ndarray
horizontal_scale: float
z_min: float
height_extent: float
property size: tuple[float, float]
sample_height(xy)[source]
Parameters:

xy (ndarray)

Return type:

ndarray

__init__(heights_uint16, horizontal_scale, z_min, height_extent)
Parameters: