From f05f2e34300a50f2a6c80544fe1f56b9dc7726de Mon Sep 17 00:00:00 2001 From: apn Date: Thu, 11 Dec 2014 17:22:01 +0300 Subject: [PATCH] 0024938: BRepMesh_IncrementalMesh hangs Added test case bugs/mesh/bug24938 Small corrections in test case bugs/mesh/bug24938 --- tests/bugs/mesh/bug24938 | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/bugs/mesh/bug24938 diff --git a/tests/bugs/mesh/bug24938 b/tests/bugs/mesh/bug24938 new file mode 100644 index 0000000000..7fa386ba1b --- /dev/null +++ b/tests/bugs/mesh/bug24938 @@ -0,0 +1,39 @@ +puts "TODO OCC24938 ALL: Error: shape contains 0 triangles" +puts "TODO OCC24938 ALL: Error: shape contains 0 nodes" + +puts "==========" +puts "OCC24938" +puts "==========" +puts "" +######################################## +# BRepMesh_IncrementalMesh hangs +######################################## + +# to prevent loops limit to 5 minutes +cpulimit 300 + +restore [locate_data_file bug24938_27773.brep] result + +tclean result +incmesh result 1.5 -relative +set trinfo_s [trinfo result] +regexp {([0-9]+) triangles} ${trinfo_s} str nbtri_s +regexp {([0-9]+) nodes} ${trinfo_s} str nbnod_s + +if { ${nbtri_s} == 0 } { + puts "Error: shape contains 0 triangles" +} else { + puts "OK: shape contains ${nbtri_s} triangles" +} + +if { ${nbnod_s} == 0 } { + puts "Error: shape contains 0 nodes" +} else { + puts "OK: shape contains ${nbnod_s} nodes" +} + +vinit +vsetdispmode 1 +vdisplay result +vfit +set only_screen 1 -- 2.20.1