0024627: Extrema 2d between an arc of circle and an ellipse crashes
authorifv <ifv@opencascade.com>
Thu, 20 Feb 2014 12:59:35 +0000 (16:59 +0400)
committerapn <apn@opencascade.com>
Thu, 20 Feb 2014 13:02:50 +0000 (17:02 +0400)
Test case for issue CR24627

src/Extrema/Extrema_ExtElC2d.cdl
tests/bugs/moddata_3/bug24627 [new file with mode: 0755]

index eb46cf5..d27118a 100644 (file)
@@ -137,7 +137,7 @@ fields
     myDone : Boolean;
     myIsPar: Boolean;
     myNbExt: Integer;
-    mySqDist: Real [4];
-    myPoint: POnCurv2d from Extrema [4,2];
+    mySqDist: Real [8];
+    myPoint: POnCurv2d from Extrema [8,2];
 
 end ExtElC2d;
diff --git a/tests/bugs/moddata_3/bug24627 b/tests/bugs/moddata_3/bug24627
new file mode 100755 (executable)
index 0000000..f8d4bcf
--- /dev/null
@@ -0,0 +1,24 @@
+puts "========"
+puts "OCC24627"
+puts "========"
+puts ""
+######################################
+## Extrema 2d between an arc of circle and an ellipse crashes
+######################################
+
+# Make a planar face (for construction of 2 curves).
+plane p 0 0 0 0 0 1
+mkface f p -1000 1000 -1000 1000
+
+# Load an arc of circle and make a 2d arc.
+restore [locate_data_file bug24627_circle.brep] c
+explode c e
+mk2dcurve c2d c_1 f
+
+# Load a ellipse and make a 2d ellipse.
+restore [locate_data_file bug24627_ellipse.brep] e
+explode e e
+mk2dcurve e2d e_1 f
+
+# Compute extrema points for these two 2d curves.
+2dextrema c2d e2d