/// <summary> /// Retrieves the specified child node. /// </summary> /// <param name="node">The child node to retrieve.</param> /// <returns>The specified child node.</returns> public OctreeNode getNode(OctreeNode.OctreeOrder node) { switch (node) { case OctreeOrder.TopLeftBack: return(this.TopLeftBack); case OctreeOrder.TopLeftFront: return(this.TopLeftFront); case OctreeOrder.TopRightBack: return(this.TopRightBack); case OctreeOrder.TopRightFront: return(this.TopRightFront); case OctreeOrder.BottomLeftFront: return(this.BottomLeftFront); case OctreeOrder.BottomLeftBack: return(this.BottomLeftBack); case OctreeOrder.BottomRightFront: return(this.BottomRightFront); case OctreeOrder.BottomRightBack: return(this.BottomRightBack); default: return(null); } }
/// <summary> /// Does nothing. /// </summary> public void Delete(OctreeNode.OctreeOrder node) { switch (node) { case OctreeOrder.BottomLeftBack: this.BottomLeftBack = null; break; case OctreeOrder.BottomLeftFront: this.BottomLeftFront = null; break; case OctreeOrder.BottomRightBack: this.BottomRightBack = null; break; case OctreeOrder.BottomRightFront: this.BottomRightFront = null; break; case OctreeOrder.TopLeftBack: this.TopLeftBack = null; break; case OctreeOrder.TopLeftFront: this.TopLeftFront = null; break; case OctreeOrder.TopRightBack: this.TopRightBack = null; break; case OctreeOrder.TopRightFront: this.TopRightFront = null; break; } }