Overlume 1.2.0
A real-time rendering layer for a robot's sensor and autonomy data
Loading...
Searching...
No Matches
overlume::HeightGridLayer Struct Reference

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

Detailed Description

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).

Member Data Documentation

◆ height_cells

uint32_t overlume::HeightGridLayer::height_cells

◆ heights_m

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.

◆ last_update_sec

double overlume::HeightGridLayer::last_update_sec

◆ origin

Vec3 overlume::HeightGridLayer::origin

World position of the corner of cell (0, 0). origin.z is the height-zero plane.

◆ resolution_m

double overlume::HeightGridLayer::resolution_m

Cell edge length, metres.

◆ width_cells

uint32_t overlume::HeightGridLayer::width_cells

◆ yaw_rad

double overlume::HeightGridLayer::yaw_rad

Rotation of the grid's +x axis about world +z, radians.


The documentation for this struct was generated from the following file:
  • overlume/include/overlume/scene.h