Modified cpulimits in test cases in Debug mode.
[occt.git] / tests / bugs / mesh / bug24968_1
CommitLineData
01a6e62b 1puts "=========="
2puts "OCC24968"
3puts "=========="
4puts ""
5#####################################
6# Impove BRepMesh_Classifier to cope with intersection of huge number of wires
7#####################################
8
d4d12e8b 9cpulimt 2500
10
01a6e62b 11restore [locate_data_file bug24968_Shape_1.brep] result
12
13tclean result
14dchrono h reset
15dchrono h start
16incmesh result 0.1 0
17dchrono h stop
18
19set info [dchrono h show]
20regexp {CPU user time: ([-0-9.+eE]+) seconds} ${info} full cpu_time
21
22if { [regexp {Debug mode} [dversion]] } {
23 if { [regexp {Windows} [dversion]] } {
d4d12e8b 24 set max_time 2500
01a6e62b 25 } else {
d4d12e8b 26 set max_time 2500
01a6e62b 27 }
28} else {
29 if { [regexp {Windows} [dversion]] } {
30 set max_time 100
31 } else {
32 set max_time 250
33 }
34}
35
36if { ${cpu_time} > ${max_time} } {
37 puts "Error : meshing is slow"
38} else {
39 puts "OK: meshing is quite fast"
40}
41
42vinit
43vdisplay result
44vfit
45vsetdispmode 1
46
47set only_screen 1