Merged KdTree update from svn trunk using "svn merge -r 8706:8707 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk ."
This commit is contained in:
@@ -226,6 +226,10 @@ int BuildKdTree::divide(KdTree::BuildOptions& options, osg::BoundingBox& bb, int
|
||||
node.bb.expandBy(v1);
|
||||
node.bb.expandBy(v2);
|
||||
|
||||
}
|
||||
|
||||
if (node.bb.valid())
|
||||
{
|
||||
float epsilon = 1e-6;
|
||||
node.bb._min.x() -= epsilon;
|
||||
node.bb._min.y() -= epsilon;
|
||||
@@ -234,7 +238,7 @@ int BuildKdTree::divide(KdTree::BuildOptions& options, osg::BoundingBox& bb, int
|
||||
node.bb._max.y() += epsilon;
|
||||
node.bb._max.z() += epsilon;
|
||||
}
|
||||
|
||||
|
||||
#ifdef VERBOSE_OUTPUT
|
||||
if (!node.bb.valid())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user