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

Method drawOctreeGrid

octovis/src/OcTreeDrawer.cpp:840–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838 }
839
840 void OcTreeDrawer::drawOctreeGrid() const {
841 if (!m_octree_grid_vis_initialized) return;
842 if (octree_grid_vertex_size == 0) return;
843
844 glDisable(GL_LIGHTING);
845 glEnable(GL_LINE_SMOOTH);
846
847 glLineWidth(1.);
848 glVertexPointer(3, GL_FLOAT, 0, octree_grid_vertex_array);
849 glColor3f(0.0, 0.0, 0.0);
850 glDrawArrays(GL_LINES, 0, octree_grid_vertex_size / 3);
851
852 glDisable(GL_LINE_SMOOTH);
853 glEnable(GL_LIGHTING);
854 }
855
856 void OcTreeDrawer::enableOcTree(bool enabled) {
857 m_update = true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected