mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-08 18:40:55 +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) {
|
||||
BRepBndLib::AddClose(myshape, myBB);
|
||||
BRepBndLib::Add (myshape, myBB, false);
|
||||
myCompBB = Standard_False;
|
||||
}
|
||||
return myBB;
|
||||
|
@ -166,8 +166,7 @@ const Bnd_Box& IVtkOCC_SelectableObject::BoundingBox()
|
||||
|
||||
if (myBndBox.IsVoid())
|
||||
{
|
||||
// Add only edges and vertices, in case of troubles this should work anyway
|
||||
BRepBndLib::AddClose (anOcctShape, myBndBox);
|
||||
BRepBndLib::Add (anOcctShape, myBndBox, true);
|
||||
}
|
||||
|
||||
return myBndBox;
|
||||
|
@ -1,10 +1,7 @@
|
||||
puts "========"
|
||||
puts "OCC26978"
|
||||
puts "0026978: VIS - Interactive selection is insensitive to swept shell"
|
||||
puts "========"
|
||||
puts ""
|
||||
######################################################
|
||||
# Interactive selection is insensitive to swept shell
|
||||
#######################################################
|
||||
|
||||
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 anImgDiff ${imagedir}/${test_image}_diff.png
|
||||
|
||||
set x 75
|
||||
set y 200
|
||||
ivtkselect $x $y
|
||||
ivtkselect 75 200
|
||||
ivtkdump ${anImg1}
|
||||
|
||||
set x 150
|
||||
set y 150
|
||||
ivtkselect $x $y
|
||||
ivtkselect 150 150
|
||||
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