mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0025251: Visualization - Isolated vertex is invisible in shading mode
BVH_BinnedBuilder class corrected to split several objects with null bounding box (e.g. two or more vertices). Test case for issue CR25251
This commit is contained in:
parent
cddbf6a985
commit
61aa7f3d3c
@ -207,16 +207,11 @@ void BVH_BinnedBuilder<T, N, Bins>::BuildNode (BVH_Set<T, N>* theSet,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (aMinSplitAxis == -1)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
theBVH->SetInner (theNode);
|
theBVH->SetInner (theNode);
|
||||||
|
|
||||||
Standard_Integer aMiddle = -1;
|
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();
|
aMinSplitBoxLft.Clear();
|
||||||
aMinSplitBoxRgh.Clear();
|
aMinSplitBoxRgh.Clear();
|
||||||
|
31
tests/bugs/vis/bug25251
Normal file
31
tests/bugs/vis/bug25251
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user