From: emv Date: Thu, 12 Sep 2013 10:14:12 +0000 (+0400) Subject: 0024143: bopcheck command throws an exception X-Git-Tag: V6_7_0_beta~141 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=6dc54e56bfc5949f6572c675535d01264c8deafe;p=occt-copy.git 0024143: bopcheck command throws an exception Use the tolerance value of the face instead of sum of tolerance values of face and edge to compute grid points on the surface of the face. Adding test case for issue CR24143 --- diff --git a/src/IntTools/IntTools_BeanFaceIntersector.cxx b/src/IntTools/IntTools_BeanFaceIntersector.cxx index 1e92ff5e6f..9819299043 100755 --- a/src/IntTools/IntTools_BeanFaceIntersector.cxx +++ b/src/IntTools/IntTools_BeanFaceIntersector.cxx @@ -1900,7 +1900,7 @@ Standard_Boolean IntTools_BeanFaceIntersector::ComputeLocalized() { Handle(Geom_BSplineSurface) aSurfBspl = Handle(Geom_BSplineSurface)::DownCast(myTrsfSurface); ComputeGridPoints(aSurfBspl, myUMinParameter, myUMaxParameter, - myVMinParameter, myVMaxParameter, myCriteria, + myVMinParameter, myVMaxParameter, myFaceTolerance, aSurfaceData); if(!bFBoxFound) { diff --git a/tests/bugs/modalg_5/bug24143 b/tests/bugs/modalg_5/bug24143 new file mode 100755 index 0000000000..2de3acd9f4 --- /dev/null +++ b/tests/bugs/modalg_5/bug24143 @@ -0,0 +1,19 @@ +cpulimit 2000 + +puts "================" +puts "OCC24143" +puts "================" +puts "" +####################################################################### +# bopcheck command throws an exception +####################################################################### + +restore [locate_data_file tool_1.brep] b + +# 1. bopcheck +bopcheck b + +# 2. modeling case +explode b e; copy b_23 b1 +explode b f; copy b_14 b2 +bop b1 b2