src/kdtree.cc
branchpyrit
changeset 13 fbd1d2f7d94e
parent 12 f4fcabf05785
child 14 fc18ac4833f2
equal deleted inserted replaced
12:f4fcabf05785 13:fbd1d2f7d94e
    87 	return nearest_shape;
    87 	return nearest_shape;
    88 }
    88 }
    89 
    89 
    90 void KdNode::subdivide(BBox bbox, int depth)
    90 void KdNode::subdivide(BBox bbox, int depth)
    91 {
    91 {
    92 	if (depth >= 10 || shapes.size() <= 2)
    92 	if (depth >= 20 || shapes.size() <= 4)
    93 	{
    93 	{
    94 		leaf = true;
    94 		leaf = true;
    95 		return;
    95 		return;
    96 	}
    96 	}
    97 
    97