mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0026978: VIS - Interactive selection is insensitive to swept shell
IVtkOCC_SelectableObject::BoundingBox(), AIS_Shape::BoundingBox() now don't use BRepBndLib::AddClose() on arbitrary shapes.
This commit is contained in:
parent
7fab82af5f
commit
2546fd477f
@ -793,7 +793,7 @@ const Bnd_Box& AIS_Shape::BoundingBox()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(myCompBB) {
|
if(myCompBB) {
|
||||||
BRepBndLib::AddClose(myshape, myBB);
|
BRepBndLib::Add (myshape, myBB, false);
|
||||||
myCompBB = Standard_False;
|
myCompBB = Standard_False;
|
||||||
}
|
}
|
||||||
return myBB;
|
return myBB;
|
||||||
|
@ -166,8 +166,7 @@ const Bnd_Box& IVtkOCC_SelectableObject::BoundingBox()
|
|||||||
|
|
||||||
if (myBndBox.IsVoid())
|
if (myBndBox.IsVoid())
|
||||||
{
|
{
|
||||||
// Add only edges and vertices, in case of troubles this should work anyway
|
BRepBndLib::Add (anOcctShape, myBndBox, true);
|
||||||
BRepBndLib::AddClose (anOcctShape, myBndBox);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return myBndBox;
|
return myBndBox;
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
puts "========"
|
puts "========"
|
||||||
puts "OCC26978"
|
puts "0026978: VIS - Interactive selection is insensitive to swept shell"
|
||||||
puts "========"
|
puts "========"
|
||||||
puts ""
|
puts ""
|
||||||
######################################################
|
|
||||||
# Interactive selection is insensitive to swept shell
|
|
||||||
#######################################################
|
|
||||||
|
|
||||||
restore [locate_data_file bug26978_evol3.brep] s
|
restore [locate_data_file bug26978_evol3.brep] s
|
||||||
|
|
||||||
@ -16,14 +13,10 @@ set anImg1 ${imagedir}/${test_image}_1.png
|
|||||||
set anImg2 ${imagedir}/${test_image}_2.png
|
set anImg2 ${imagedir}/${test_image}_2.png
|
||||||
set anImgDiff ${imagedir}/${test_image}_diff.png
|
set anImgDiff ${imagedir}/${test_image}_diff.png
|
||||||
|
|
||||||
set x 75
|
ivtkselect 75 200
|
||||||
set y 200
|
|
||||||
ivtkselect $x $y
|
|
||||||
ivtkdump ${anImg1}
|
ivtkdump ${anImg1}
|
||||||
|
|
||||||
set x 150
|
ivtkselect 150 150
|
||||||
set y 150
|
|
||||||
ivtkselect $x $y
|
|
||||||
ivtkdump ${anImg2}
|
ivtkdump ${anImg2}
|
||||||
|
|
||||||
diffimage ${anImg2} ${anImg1} 0.0 0 0 ${anImgDiff}
|
if { [diffimage ${anImg2} ${anImg1} 0.0 0 0 ${anImgDiff}] != 0 } { puts "Error: selection failed" }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user