diff --git a/src/BVH/BVH_BinnedBuilder.lxx b/src/BVH/BVH_BinnedBuilder.lxx index 8a705784c3..207c9ee025 100644 --- a/src/BVH/BVH_BinnedBuilder.lxx +++ b/src/BVH/BVH_BinnedBuilder.lxx @@ -207,16 +207,11 @@ void BVH_BinnedBuilder::BuildNode (BVH_Set* theSet, } } - if (aMinSplitAxis == -1) - { - return; - } - theBVH->SetInner (theNode); Standard_Integer aMiddle = -1; - if (aMinSplitNumLft == 0 || aMinSplitNumRgh == 0) // case of objects with the same center + if (aMinSplitNumLft == 0 || aMinSplitNumRgh == 0 || aMinSplitAxis == -1) // case of objects with the same center { aMinSplitBoxLft.Clear(); aMinSplitBoxRgh.Clear(); diff --git a/tests/bugs/vis/bug25251 b/tests/bugs/vis/bug25251 new file mode 100644 index 0000000000..3cd540f4b0 --- /dev/null +++ b/tests/bugs/vis/bug25251 @@ -0,0 +1,31 @@ +puts "============" +puts "OCC25251" +puts "============" +puts "" +#################################################################################### +# Visualization - Vertex disappearing from the view after switching display mode +#################################################################################### + +set check_x 204 +set check_y 204 + +set x 100 +set y 100 + +vinit + +vertex v 0 0 0 +vdisplay v +checkcolor ${check_x} ${check_y} 1 1 0 + +vmoveto ${check_x} ${check_y} +checkcolor ${check_x} ${check_y} 0 1 1 + +vsetdispmode 1 +vmoveto ${check_x} ${check_y} +checkcolor ${check_x} ${check_y} 1 1 0 + +vmoveto ${x} ${y} +checkcolor ${check_x} ${check_y} 1 1 0 + +vdump ${imagedir}/${casename}.png