Skip to content

raisin::tcp_viewer::HeightmapPlane ​

struct · #include <rayrai/TcpRemoteSceneState.hpp>

Heightmap plane data for mesh updates.

Public attributes ​

centerX ​

cpp
float centerX

World x of the grid center.

centerY ​

cpp
float centerY

World y of the grid center.

sizeX ​

cpp
float sizeX

Extent along x.

sizeY ​

cpp
float sizeY

Extent along y.

minZ ​

cpp
float minZ

Lowest height (used for scene bounds).

maxZ ​

cpp
float maxZ

Highest height (used for scene bounds).

origin ​

cpp
glm::vec3 origin

World position of the grid center where the visual is placed.

orientation ​

cpp
glm::vec4 orientation

Received orientation (w, x, y, z).

xSamples ​

cpp
int xSamples

Sample count along x.

ySamples ​

cpp
int ySamples

Sample count along y.

heights ​

cpp
std::vector<float> heights

xSamples * ySamples heights, row-major with x fastest.

colors ​

cpp
std::vector<raisim::ColorRGB> colors

Optional per-sample colors in the same layout as heights; empty when absent.

dirty ​

cpp
bool dirty

Geometry changed; render meshes must be rebuilt.

colorsDirty ​

cpp
bool colorsDirty

colors changed; the color texture must be re-uploaded.

textureId ​

cpp
unsigned int textureId

GL texture holding colors (0 if none).

colorWidth ​

cpp
int colorWidth

Width of the allocated textureId.

colorHeight ​

cpp
int colorHeight

Height of the allocated textureId.

renderMeshes ​

cpp
std::shared_ptr<std::vector<std::shared_ptr<OpenGLMesh>>> renderMeshes

Built render meshes.

terrainTextured ​

cpp
bool terrainTextured

renderMeshes were built for the viewer's heightmap terrain textures (world-tiled UVs) instead of colors.

RaiSim — physics for robotics and AI.