]> OCCT Git - occt-copy.git/commitdiff
0025657: Bad result of Fillet operation
authorjgv <jgv@opencascade.com>
Fri, 26 Dec 2014 11:04:06 +0000 (14:04 +0300)
committervsr <vsr@opencascade.com>
Sat, 27 Dec 2014 11:40:45 +0000 (14:40 +0300)
src/ChFi3d/ChFi3d_Builder_C1.cxx
tests/bugs/modalg_5/bug25657 [new file with mode: 0644]

index 5125920ba9979d4040d6b6023315465e97f16ddd..a23214b60cb520e2cb4f5db2267cdeff3b1b4bed 100644 (file)
@@ -371,8 +371,7 @@ static Standard_Boolean Update(Handle(Adaptor3d_HSurface)& face,
     pared = ponc1.Parameter();
     parltg = ponc2.Parameter();
     if ((parltg > f) && (parltg < l)) {
-#ifdef OCC23139
-      ////modified by jgv, 10.05.2012 for the bug 23139////
+      ////modified by jgv, 10.05.2012 for the bug 23139, 25657////
       Handle(Geom2d_Curve) PConF = fi.PCurveOnFace();
       if (!PConF.IsNull())
       {
@@ -393,7 +392,6 @@ static Standard_Boolean Update(Handle(Adaptor3d_HSurface)& face,
         }
       }
       /////////////////////////////////////////////////////
-#endif
       fi.SetParameter(parltg,isfirst);
       cp.SetArc(cp.Tolerance(),cp.Arc(),pared,cp.TransitionOnArc());
       return Standard_True;
diff --git a/tests/bugs/modalg_5/bug25657 b/tests/bugs/modalg_5/bug25657
new file mode 100644 (file)
index 0000000..61bb47f
--- /dev/null
@@ -0,0 +1,25 @@
+puts "========"
+puts "OCC25657"
+puts "========"
+puts ""
+###########################################################################################
+#  Bad result of Fillet operation
+###########################################################################################
+
+restore [locate_data_file bug25657_r4.brep] r4
+explode r4 e
+shape c c
+add r4_15 c
+fillet res r4 20 c
+
+explode res f
+
+pcurve res_2
+# exception
+
+pcurve res_5
+# exception
+
+smallview
+fit
+set only_screen_axo 1