BVH_BinnedBuilder class corrected to split several objects
with null bounding box (e.g. two or more vertices).
Test case for issue CR25251
}
}
- 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();
--- /dev/null
+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