BSPTree.split C# (CSharp) Method

split() public method

public split ( BSPNode, _aNode ) : void
_aNode BSPNode,
return void
    public void split(BSPNode _aNode)
    {
        if (_aNode.getLeftNode() != null){
            split(_aNode.getLeftNode());
        }else{
         	_aNode.cut();
            return;
        }

        if (_aNode.getLeftNode() != null){
            split(_aNode.getRightNode());
        }
    }