IVtkOCC_SelectableObject::BoundingBox(), AIS_Shape::BoundingBox() now don't use
BRepBndLib::AddClose() on arbitrary shapes.
}
if(myCompBB) {
- BRepBndLib::AddClose(myshape, myBB);
+ BRepBndLib::Add (myshape, myBB, false);
myCompBB = Standard_False;
}
return myBB;
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;
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
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" }