raisin::tcp_viewer::VoxelBricks
struct · #include <rayrai/TcpVoxelMapMesh.hpp>
Occupancy of a voxel map received by the TCP viewer, stored as 16^3-voxel bricks of 64 words of 4^3 voxels (see raisim::RaisimServer::PROTOCOL_FEATURE_VOXEL_MAPS).
Nested classes
structKeyHash
Public member functions
clear
cpp
void clear()Remove every brick.
addBrick
cpp
void addBrick(
int bx,
int by,
int bz,
const std::array<uint64_t, 64> &brickWords)Add a brick; brickWords holds its 64 words.
word
cpp
uint64_t word(int wx, int wy, int wz) constReturns occupancy of word (wx, wy, wz) in domain-relative word coordinates (0 if absent).
empty
cpp
bool empty() constReturns true if no brick is stored.
Public attributes
voxelSize
cpp
double voxelSizeVoxel side length.
minKey
cpp
std::array<int, 3> minKeyKey of the first voxel of the domain.
size
cpp
std::array<int, 3> sizeDomain size in voxels.
coordinates
cpp
std::vector<std::array<int, 3>> coordinatesDomain-relative coordinates of each brick.
words
cpp
std::vector<std::array<uint64_t, 64>> wordsWord occupancy of each brick.
slots
cpp
raisim::FlatHashMap<uint64_t, uint32_t, KeyHash> slotsBrick index + 1 by packed coordinates.