0026342: No materials are read from STEP
[occt.git] / tests / bugs / modalg_1 / bug19793_2
CommitLineData
3bea4c16 1puts "============"
2puts "OCC19793"
3puts "============"
4puts ""
5#######################################################################
6# Fuse problem of symetrical shapes. Appendix for NPAL19789
7#######################################################################
8
4292bee1 9cpulimit 2500
3bea4c16 10set BugNumber OCC19793
11
12puts "Load first shape ..."
13restore [locate_data_file bug19793_new_shape.brep] b1
14puts "Load second shape ..."
15restore [locate_data_file bug19793_shape.brep] b2
16
17puts "Prepare boolean operation ..."
1e07a0fa 18dchrono perf_h reset
19dchrono perf_h start
3bea4c16 20bop b1 b2
1e07a0fa 21dchrono perf_h stop
3bea4c16 22
23puts "Start boolean operation ..."
24bopsection result
25puts "Finish boolean operation ..."
26
27set length 17730.1
28
29set nb_e_good 1190
30set nb_v_good 68
31set nb_e_good 70
32set nb_w_good 0
33set nb_f_good 0
34set nb_sh_good 0
35set nb_sol_good 0
36set nb_compsol_good 0
37set nb_compound_good 1
38set nb_shape_good 139
39
1e07a0fa 40# OCC23753 processing
41# Performance verification of bop operation
42set chrono_info [dchrono perf_h show]
43regexp {CPU user time: ([-0-9.+eE]+) seconds} $chrono_info full CPU_time
4292bee1 44
45if { [regexp {Debug mode} [dversion]] } {
46 if { [regexp {Windows} [dversion]] } {
47 puts "Checking WINDOWS performance..."
48 if {$CPU_time > 1000.} {
49 puts "ERROR: OCC23753 is reproduced."
50 puts " Low performance: $CPU_time"
51 }
52 } else {
53 puts "Checking LINUX performance..."
54 if {$CPU_time > 2500.} {
55 puts "ERROR: OCC23753 is reproduced."
56 puts " Low performance: $CPU_time"
57 }
1e07a0fa 58 }
4292bee1 59} else {
60 if { [regexp {Windows} [dversion]] } {
61 puts "Checking WINDOWS performance..."
62 # Initial CPU_time is 92-94 seconds for Windows
4dcc5ecb 63 if {$CPU_time > 300.} {
4292bee1 64 puts "ERROR: OCC23753 is reproduced."
65 puts " Low performance: $CPU_time"
66 }
67 } else {
68 puts "Checking LINUX performance..."
69 # Initial CPU_time is 287-289 seconds for Linux
4dcc5ecb 70 if {$CPU_time > 350.} {
4292bee1 71 puts "ERROR: OCC23753 is reproduced."
72 puts " Low performance: $CPU_time"
73 }
1e07a0fa 74 }
75}
3bea4c16 76
77set 2dviewer 0