internal OcTreeNode(int colorDepth,int level,OcTree tree)
{
this.ColorDepth = colorDepth;
this.Leaf = (colorDepth==level);
this.Level = level;
if (!Leaf)
{
NextReducible = tree.ReducibleNodes[level];
tree.ReducibleNodes[level] = this;
Children = new OcTreeNode[8];
}
else
{
tree.IncrementLeaves();
}
}