85
86
// Create child tree, or NULL if there's nothing to create
86
87
if (candElems_->size() - leftElems->size() < 4 || leftElems->size() == 0) {
89
92
leftChild_ = new KD_Tree(leftPts, leftElems, (dimension+1) % 3);
91
94
// Create child tree, or NULL if there's nothing to create
92
95
if (candElems_->size() - rightElems->size() < 4 || rightElems->size() == 0) {
95
100
rightChild_ = new KD_Tree(rightPts, rightElems, (dimension+1) % 3);