]> OCCT Git - occt-copy.git/commitdiff
0023513: BRepMesh doesn't stop until out-of-memory
authornbv <nbv@opencascade.com>
Wed, 7 Nov 2018 11:56:27 +0000 (14:56 +0300)
committernbv <nbv@opencascade.com>
Thu, 8 Nov 2018 12:48:18 +0000 (15:48 +0300)
Adding test case for the problem.
The issue has been fixed by a patch for #26106.

tests/bugs/mesh/bug23513 [new file with mode: 0644]

diff --git a/tests/bugs/mesh/bug23513 b/tests/bugs/mesh/bug23513
new file mode 100644 (file)
index 0000000..5c46f1e
--- /dev/null
@@ -0,0 +1,22 @@
+puts "=========="
+puts "0023513: BRepMesh doesn't stop until out-of-memory"
+puts "=========="
+puts ""
+
+restore [locate_data_file bug23513_infface.brep] result
+
+vinit
+vsetdispmode 1
+vdisplay result
+vfit
+checkview -screenshot -3d -path ${imagedir}/${test_image}.png
+
+checktrinfo result -tri 323648 -nod 161865 -defl 0.00096399964870812682
+
+set log [tricheck result]
+if { [llength $log] != 0 } {
+  puts "Error : Invalid mesh"
+} else {
+  puts "Mesh is OK"
+}