Modify test case bugs/mesh/bug28118
[occt.git] / tests / bugs / mesh / bug28118
CommitLineData
cde381c4 1puts "========"
2puts "OCC28118"
3puts "========"
4puts ""
5###########################################
6# Mesh generation hangs then crashes
7###########################################
8
7dd37838 9pload DATAEXCHANGEKERNEL
10
cde381c4 11testreadstep [locate_data_file bug28118_18547.stp] result
12vclear
13vinit View1
14vdefaults -autoTriang off
15vdisplay result
16vfit
17incmesh result 0.1 -relative
18vsetdispmode 1
19set tri_info [trinfo result]
20
21regexp { +([-0-9.+eE]+) +triangles} $tri_info full tri
22regexp { +([-0-9.+eE]+) +nodes} $tri_info full nod
23
24if { $tri > 0 && $nod > 0 } {
25 puts "OK: mesh was created correctly"
26} else {
27 puts "Error: mesh was not built"
7dd37838 28}
cde381c4 29
30checkview -screenshot -3d -path ${imagedir}/${test_image}.png