0023631: Infinite memory consumption in BRepMesh
[occt.git] / tests / bugs / mesh / bug23631
CommitLineData
9bdafcbe 1puts "========"
2puts "OCC23631"
3puts "========"
4puts ""
5###########################################
6## Infinite memory consumption in BRepMesh
7###########################################
8
9set BugNumber 23631
10
11restore [locate_data_file OCC396_f2903.brep] result
12
13incmesh result 0.01
14triangles result
15
16set tri 0
17set nod 0
18
19set good_tri 31
20set good_nod 33
21
22set tri_info [trinfo result]
23regexp { +([-0-9.+eE]+) +triangles} $tri_info full tri
24regexp { +([-0-9.+eE]+) +nodes} $tri_info full nod
25
26if { ${tri} == ${good_tri} && ${nod} == ${good_nod} } {
27 puts "Bug ${BugNumber} shading: OK"
28} else {
29 puts "Bug ${BugNumber} shading: Faulty"
30}
31
32vinit
33vdisplay result
34vfit
35vsetdispmode 1
36set only_screen 1
37