protected void afterAddInstance(KDTreeNode node){
  node.m_Start++;
  node.m_End++;
  if (!node.isALeaf()) {
    afterAddInstance(node.m_Left);
    afterAddInstance(node.m_Right);
  }
}

protected void afterAddInstance ( KDTreeNode node ) { node . m_Start ++ ; node . m_End ++ ; if ( ! node . isALeaf ( ) ) { afterAddInstance ( node . m_Left ) ; afterAddInstance ( node . m_Right ) ; } }
corrects the start and end indices of a kdtreenode after an instance is added to the tree . the start and end indices for the master index array ( m_instlist ) stored in the nodes need to be updated for all nodes in the subtree on the right of a node where the instance was added . note : no outside class should call this method .
