Deleted unnecessary TODOs in test cases with improvements on MacOS platform. Small...
[occt.git] / tests / bugs / modalg_5 / bug24751_5
CommitLineData
6b1fe48c 1puts "========="
2puts "OCC24751"
3puts "========="
4puts ""
5###########################################################
6# Performance improvements in the Edge/Edge intersection algorithm
7###########################################################
8
9pload QAcommands
10
11if { [regexp {Debug mode} [dversion]] } {
12 if { [regexp {Windows} [dversion]] } {
dd8f1b19 13 set max_time 300
6b1fe48c 14 } else {
15 set max_time 500
16 }
17} else {
18 if { [regexp {Windows} [dversion]] } {
19 set max_time 100
20 } else {
21 set max_time 150
22 }
23}
24
5dc2ede9 25if {[string compare $os "MacOS"] == 0} {
26 set max_time 270
27}
28
6b1fe48c 29dchrono h reset
30dchrono h start
31
32restore [locate_data_file bug24696_cx_e1200_nurbs.brep] cx
33
34###------------------####
35trotate cx 0 0 0 1 1 1 90
36###------------------####
37
38bclearobjects
39bcleartools
40
41set edges [explode cx e]
42set nbe [llength $edges]
43for {set i 1} {$i <= $nbe} {incr i} {baddobjects cx_$i}
44bfillds
45bbuild result
46
47dchrono h stop
48set q [dchrono h show]
49
50regexp {CPU user time: ([-0-9.+eE]+) seconds} $q full z
51puts "$z"
52
53if { $z > ${max_time} } {
54 puts "Elapsed time is more than ${max_time} seconds - Faulty"
55} else {
56 puts "Elapsed time is less than ${max_time} seconds - OK"
57}
58
59set 2dviewer 1