0023651: Exception on fillet construction between NURBS and surface of revolution
authorjgv <jgv@opencascade.com>
Fri, 18 Jan 2013 09:42:52 +0000 (13:42 +0400)
committerjgv <jgv@opencascade.com>
Fri, 18 Jan 2013 09:42:52 +0000 (13:42 +0400)
Adding test cases for this fix

src/ChFi3d/ChFi3d_Builder_6.cxx
tests/bugs/modalg/bug23651_1 [new file with mode: 0755]
tests/bugs/modalg/bug23651_2 [new file with mode: 0755]

index 50a9233..566af9e 100755 (executable)
@@ -538,7 +538,7 @@ Standard_Boolean ChFi3d_Builder::CompleteData
   Handle(BRepBlend_AppFunc) TheFunc 
     = new (BRepBlend_AppFunc)(lin, Func, tolapp3d, 1.e-5);
 
-  Standard_Integer Degmax = 20, Segmax = 100;
+  Standard_Integer Degmax = 20, Segmax = 5000;
   BRepBlend_AppSurface approx (TheFunc, 
                               lin->Point(1).Parameter(),
                               lin->Point(lin->NbPoints()).Parameter(),
diff --git a/tests/bugs/modalg/bug23651_1 b/tests/bugs/modalg/bug23651_1
new file mode 100755 (executable)
index 0000000..84593c5
--- /dev/null
@@ -0,0 +1,13 @@
+puts "============"
+puts "CR23651"
+puts "============"
+puts ""
+###############################
+## Exception on fillet construction between NURBS and surface of revolution
+###############################
+
+restore [locate_data_file bug23651_turbine_shell_one_edge.brep] s
+explode s e
+blend result s 1 s_4
+
+set 3dviewer 1
diff --git a/tests/bugs/modalg/bug23651_2 b/tests/bugs/modalg/bug23651_2
new file mode 100755 (executable)
index 0000000..2c4fa32
--- /dev/null
@@ -0,0 +1,16 @@
+puts "============"
+puts "CR23651"
+puts "============"
+puts ""
+###############################
+## Exception on fillet construction between NURBS and surface of revolution
+###############################
+
+restore [locate_data_file bug23651_turbine_shell_one_edge.brep ] a
+explode a e
+
+mkevol result a
+updatevol a_4 0. 1.5 0.05 1 0.45 1 0.5 1.5 0.55 2 0.95 2 1. 1.5
+buildevol
+
+set 3dviewer 1