raisin::tcp_viewer::HeightmapPlane
struct · #include <rayrai/TcpRemoteSceneState.hpp>
Heightmap plane data for mesh updates.
Public attributes
centerX
float centerXWorld x of the grid center.
centerY
float centerYWorld y of the grid center.
sizeX
float sizeXExtent along x.
sizeY
float sizeYExtent along y.
minZ
float minZLowest height (used for scene bounds).
maxZ
float maxZHighest height (used for scene bounds).
origin
glm::vec3 originWorld position of the grid center where the visual is placed.
orientation
glm::vec4 orientationReceived orientation (w, x, y, z).
xSamples
int xSamplesSample count along x.
ySamples
int ySamplesSample count along y.
heights
std::vector<float> heightsxSamples * ySamples heights, row-major with x fastest.
colors
std::vector<raisim::ColorRGB> colorsOptional per-sample colors in the same layout as heights; empty when absent.
dirty
bool dirtyGeometry changed; render meshes must be rebuilt.
colorsDirty
bool colorsDirtycolors changed; the color texture must be re-uploaded.
textureId
unsigned int textureIdGL texture holding colors (0 if none).
colorWidth
int colorWidthWidth of the allocated textureId.
colorHeight
int colorHeightHeight of the allocated textureId.
renderMeshes
std::shared_ptr<std::vector<std::shared_ptr<OpenGLMesh>>> renderMeshesBuilt render meshes.
terrainTextured
bool terrainTexturedrenderMeshes were built for the viewer's heightmap terrain textures (world-tiled UVs) instead of colors.