5 #######################################################################
6 # Fuse problem of symetrical shapes. Appendix for NPAL19789
7 #######################################################################
10 set BugNumber OCC19793
12 puts "Load first shape ..."
13 restore [locate_data_file bug19793_new_shape.brep] b1
14 puts "Load second shape ..."
15 restore [locate_data_file bug19793_shape.brep] b2
17 puts "Prepare boolean operation ..."
23 puts "Start boolean operation ..."
25 puts "Finish boolean operation ..."
37 set nb_compound_good 1
41 # Performance verification of bop operation
42 set chrono_info [dchrono perf_h show]
43 regexp {CPU user time: ([-0-9.+eE]+) seconds} $chrono_info full CPU_time
45 if { [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"
53 puts "Checking LINUX performance..."
54 if {$CPU_time > 2500.} {
55 puts "ERROR: OCC23753 is reproduced."
56 puts " Low performance: $CPU_time"
60 if { [regexp {Windows} [dversion]] } {
61 puts "Checking WINDOWS performance..."
62 # Initial CPU_time is 92-94 seconds for Windows
63 if {$CPU_time > 300.} {
64 puts "ERROR: OCC23753 is reproduced."
65 puts " Low performance: $CPU_time"
68 puts "Checking LINUX performance..."
69 # Initial CPU_time is 287-289 seconds for Linux
70 if {$CPU_time > 350.} {
71 puts "ERROR: OCC23753 is reproduced."
72 puts " Low performance: $CPU_time"