1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0030230: An optimal bounding box of a face is too large

Bug fixing
Test case added
This commit is contained in:
ifv 2018-10-11 15:52:48 +03:00 committed by apn
parent 20f720f11b
commit 5f41ce6626
2 changed files with 15 additions and 1 deletions

View File

@ -671,7 +671,7 @@ Standard_Boolean IsModifySize(const BRepAdaptor_Surface& theBS,
//
gp_Pnt2d aP2d(uextr, vextr);
TopAbs_State aSt = theFClass.Perform(aP2d);
if(aSt == TopAbs_OUT)
if(aSt != TopAbs_IN)
{
return Standard_True;
}

View File

@ -0,0 +1,14 @@
puts "========"
puts "0030230: An optimal bounding box of a face is too large"
puts "========"
puts ""
restore [locate_data_file bug30230.brep] f
bounding f -optimal -save xmin ymin zmin xmax ymax zmax
checkreal xmin [dval xmin] -12659.707180220001 1.e-7 0
checkreal ymin [dval ymin] 3389.8415241848311 1.e-7 0
checkreal zmin [dval zmin] -100.01220790140377 1.e-7 0
checkreal xmax [dval xmax] -12027.91640874722 1.e-7 0
checkreal ymax [dval ymax] 3901.8916275309998 1.e-7 0
checkreal zmax [dval zmax] 1.0003384222321339e-007 1.e-7 0