public void DrawNode(bool recursive, bool drawNodes, bool drawObjects, bool drawConnections, bool drawLabels) { DrawOne(drawNodes, drawObjects, drawConnections, drawLabels); if (!isLeaf) { for (int index = 0; index < 8; index++) { OctreeNode childNode = children[index]; if (recursive && !childNode.isLeaf) { childNode.DrawNode(recursive, drawNodes, drawObjects, drawConnections, drawLabels); } else { childNode.DrawOne(drawNodes, drawObjects, drawConnections, drawLabels); } } } }