1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00
Files
occt/tests/bugs/mesh/bug28118
gka cde381c4e2 0028118: Mesh generation hangs then crashes
Protection against hangs of mesh  and crash(made by epa)
Added test case bugs/mesh/bug28118
Tests mesh* standard_* W7 are corrected (TODO removed)
2016-11-24 07:06:49 +03:00

28 lines
664 B
Plaintext

puts "========"
puts "OCC28118"
puts "========"
puts ""
###########################################
# Mesh generation hangs then crashes
###########################################
testreadstep [locate_data_file bug28118_18547.stp] result
vclear
vinit View1
vdefaults -autoTriang off
vdisplay result
vfit
incmesh result 0.1 -relative
vsetdispmode 1
set tri_info [trinfo result]
regexp { +([-0-9.+eE]+) +triangles} $tri_info full tri
regexp { +([-0-9.+eE]+) +nodes} $tri_info full nod
if { $tri > 0 && $nod > 0 } {
puts "OK: mesh was created correctly"
} else {
puts "Error: mesh was not built"
checkview -screenshot -3d -path ${imagedir}/${test_image}.png