|
Overlume 1.2.0
A real-time rendering layer for a robot's sensor and autonomy data
|
A metric terrain heightfield: one height per cell, drawn as a lit 3D surface. More...
#include <overlume/scene.h>
Public Attributes | |
| Vec3 | origin |
| World position of the corner of cell (0, 0). origin.z is the height-zero plane. | |
| double | yaw_rad |
| Rotation of the grid's +x axis about world +z, radians. | |
| double | resolution_m |
| Cell edge length, metres. | |
| uint32_t | width_cells |
| uint32_t | height_cells |
| const float * | heights_m |
| width_cells * height_cells values, row-major (row j runs along +y), metres above origin.z. | |
| double | last_update_sec |
A metric terrain heightfield: one height per cell, drawn as a lit 3D surface.
Cell (i, j) is the cell i along the grid's +x axis and j along its +y axis; its centre sits at origin + R(yaw_rad) * ((i + 0.5) * resolution_m, (j + 0.5) * resolution_m).
| uint32_t overlume::HeightGridLayer::height_cells |
| const float* overlume::HeightGridLayer::heights_m |
width_cells * height_cells values, row-major (row j runs along +y), metres above origin.z.
NaN marks an unknown cell. The renderer copies this array during set_scene, so the caller keeps ownership. Null (or a zero dimension) draws nothing.
| double overlume::HeightGridLayer::last_update_sec |
| Vec3 overlume::HeightGridLayer::origin |
World position of the corner of cell (0, 0). origin.z is the height-zero plane.
| double overlume::HeightGridLayer::resolution_m |
Cell edge length, metres.
| uint32_t overlume::HeightGridLayer::width_cells |
| double overlume::HeightGridLayer::yaw_rad |
Rotation of the grid's +x axis about world +z, radians.