From 3d063ba65fbe2ca2a4ed5d7cb9bab1b1dd202c6f Mon Sep 17 00:00:00 2001 From: jgv Date: Fri, 14 Sep 2012 17:27:38 +0400 Subject: [PATCH] 0023389: (OCC 6.5.3 regression) BRepAlgoAPI_Cut returns invalid solid Adding test case boolean/bopcut_complex/P8 --- src/IntPolyh/IntPolyh_Intersection.cxx | 4 +++- tests/boolean/bopcut_complex/P8 | 28 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100755 tests/boolean/bopcut_complex/P8 diff --git a/src/IntPolyh/IntPolyh_Intersection.cxx b/src/IntPolyh/IntPolyh_Intersection.cxx index c5be347e3e..22f05177aa 100755 --- a/src/IntPolyh/IntPolyh_Intersection.cxx +++ b/src/IntPolyh/IntPolyh_Intersection.cxx @@ -352,13 +352,15 @@ Standard_Boolean IntPolyh_Intersection::PerformMaillage(IntPolyh_PMaillageAffina theMaillageS->SetEnlargeZone( myZone ); } + /* // if too many intersections, consider surfaces parallel (eap) if(FinTTC > 200 && (FinTTC >= theMaillageS->GetArrayOfTriangles(1).NbTriangles() || FinTTC >= theMaillageS->GetArrayOfTriangles(2).NbTriangles()) ) { return Standard_False; } - + */ + return Standard_True; } diff --git a/tests/boolean/bopcut_complex/P8 b/tests/boolean/bopcut_complex/P8 new file mode 100755 index 0000000000..e49a7e2e93 --- /dev/null +++ b/tests/boolean/bopcut_complex/P8 @@ -0,0 +1,28 @@ +puts "============" +puts "CR23389" +puts "============" +puts "" +################################################################################### +# BRepAlgoAPI_Cut returns invalid solid +################################################################################### + +restore [locate_data_file CR23389-blade3.brep] b +explode b +checkshape b_1 +checkshape b_2 +bopcheck b_1 +bopcheck b_2 +bopargcheck b_1 b_2 + +bop b_1 b_2 + +bopcut result + +set square 53698.1 + +set 3dviewer 1 + + + + +