MCPcopy Create free account
hub / github.com/OctoMap/octomap / clearCubes

Method clearCubes

octovis/src/OcTreeDrawer.cpp:494–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492
493
494 void OcTreeDrawer::clearCubes(GLfloat*** glArray,
495 unsigned int& glArraySize,
496 GLfloat** glColorArray) {
497 if (glArraySize != 0) {
498 for (unsigned i = 0; i < 6; ++i) {
499 delete[] (*glArray)[i];
500 }
501 delete[] *glArray;
502 *glArray = NULL;
503 glArraySize = 0;
504 }
505 if (glColorArray != NULL && *glColorArray != NULL) {
506 delete[] *glColorArray;
507 *glColorArray = NULL;
508 }
509 }
510
511
512 // still used for "selection" nodes

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected