0023389: (OCC 6.5.3 regression) BRepAlgoAPI_Cut returns invalid solid
authorjgv <jgv@opencascade.com>
Fri, 14 Sep 2012 13:27:38 +0000 (17:27 +0400)
committerjgv <jgv@opencascade.com>
Fri, 14 Sep 2012 13:27:38 +0000 (17:27 +0400)
Adding test case boolean/bopcut_complex/P8

src/IntPolyh/IntPolyh_Intersection.cxx
tests/boolean/bopcut_complex/P8 [new file with mode: 0755]

index c5be347..22f0517 100755 (executable)
@@ -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 (executable)
index 0000000..e49a7e2
--- /dev/null
@@ -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
+
+
+
+
+