Axiom.SceneManagers.Octree.OctreeNode.RemoveChild C# (CSharp) Method

RemoveChild() protected method

Removes the specified node from the scene graph and the octree, optionally keeping it in the internal node list yet. For internal use.
Removes all of the node's child subtree from the octree, but children remain linked to parents.
protected RemoveChild ( Node child, bool removeFromInternalList ) : void
child Axiom.Core.Node
removeFromInternalList bool
return void
		protected override void RemoveChild( Node child, bool removeFromInternalList )
		{
			Debug.Assert( child is OctreeNode, "node is not an octree node" );

			// remove all linked nodes from octree
			RemoveNodesFromOctree( (OctreeNode)child );

			// remove child from scene graph
			base.RemoveChild( child, removeFromInternalList );
		}

Usage Example

        public void TestRecreationOfChildNodeAfterRemovalByReference()
        {
            Node node = new OctreeNode( this.fakeSceneManager );
            Node childNode = node.CreateChild( Name );

            node.RemoveChild( childNode );
            node.CreateChild( Name );
        }
All Usage Examples Of Axiom.SceneManagers.Octree.OctreeNode::RemoveChild