From 6dc54e56bfc5949f6572c675535d01264c8deafe Mon Sep 17 00:00:00 2001 From: emv Date: Thu, 12 Sep 2013 14:14:12 +0400 Subject: [PATCH] 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 --- src/IntTools/IntTools_BeanFaceIntersector.cxx | 2 +- tests/bugs/modalg_5/bug24143 | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 tests/bugs/modalg_5/bug24143 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