Ejemplo n.º 1
0
 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);
             }
         }
     }
 }
Ejemplo n.º 2
0
 public void DrawAll(bool drawNodes, bool drawObjects, bool drawConnections, bool drawLabels)
 {
     rootNode.DrawNode(true, drawNodes, drawObjects, drawConnections, drawLabels);
 }