3bea4c16 |
1 | puts "============" |
2 | puts "OCC19793" |
3 | puts "============" |
4 | puts "" |
5 | ####################################################################### |
6 | # Fuse problem of symetrical shapes. Appendix for NPAL19789 |
7 | ####################################################################### |
8 | |
4292bee1 |
9 | cpulimit 2500 |
3bea4c16 |
10 | set BugNumber OCC19793 |
11 | |
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 |
16 | |
17 | puts "Prepare boolean operation ..." |
1e07a0fa |
18 | dchrono perf_h reset |
19 | dchrono perf_h start |
3bea4c16 |
20 | bop b1 b2 |
1e07a0fa |
21 | dchrono perf_h stop |
3bea4c16 |
22 | |
23 | puts "Start boolean operation ..." |
24 | bopsection result |
25 | puts "Finish boolean operation ..." |
26 | |
58cf74e0 |
27 | checkprops result -l 17730.1 |
28 | checkshape result |
29 | checksection result |
3bea4c16 |
30 | |
a4eba920 |
31 | checknbshapes result -vertex 68 -edge 70 -wire 0 -face 0 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 139 |
3bea4c16 |
32 | |
1e07a0fa |
33 | # OCC23753 processing |
34 | # Performance verification of bop operation |
35 | set chrono_info [dchrono perf_h show] |
36 | regexp {CPU user time: ([-0-9.+eE]+) seconds} $chrono_info full CPU_time |
4292bee1 |
37 | |
38 | if { [regexp {Debug mode} [dversion]] } { |
39 | if { [regexp {Windows} [dversion]] } { |
40 | puts "Checking WINDOWS performance..." |
41 | if {$CPU_time > 1000.} { |
42 | puts "ERROR: OCC23753 is reproduced." |
43 | puts " Low performance: $CPU_time" |
44 | } |
45 | } else { |
46 | puts "Checking LINUX performance..." |
47 | if {$CPU_time > 2500.} { |
48 | puts "ERROR: OCC23753 is reproduced." |
49 | puts " Low performance: $CPU_time" |
50 | } |
1e07a0fa |
51 | } |
4292bee1 |
52 | } else { |
53 | if { [regexp {Windows} [dversion]] } { |
54 | puts "Checking WINDOWS performance..." |
55 | # Initial CPU_time is 92-94 seconds for Windows |
4dcc5ecb |
56 | if {$CPU_time > 300.} { |
4292bee1 |
57 | puts "ERROR: OCC23753 is reproduced." |
58 | puts " Low performance: $CPU_time" |
59 | } |
60 | } else { |
61 | puts "Checking LINUX performance..." |
62 | # Initial CPU_time is 287-289 seconds for Linux |
4dcc5ecb |
63 | if {$CPU_time > 350.} { |
4292bee1 |
64 | puts "ERROR: OCC23753 is reproduced." |
65 | puts " Low performance: $CPU_time" |
66 | } |
1e07a0fa |
67 | } |
68 | } |
3bea4c16 |
69 | |
70 | set 2dviewer 0 |