a4eba920 |
1 | puts "TODO OCC11111 ALL: Error : is WRONG because number of " |
61c421bf |
2 | |
3 | puts "============" |
4 | puts "OCC10160" |
5 | puts "============" |
6 | puts "" |
7 | ####################################################################### |
8 | # BOP perfomance improvemen |
9 | ####################################################################### |
10 | |
11 | set BugNumber OCC10160 |
12 | |
13 | restore [locate_data_file OCC10160-1.brep] b1 |
14 | restore [locate_data_file OCC10160-3.brep] b2 |
15 | |
16 | set NbTests 3 |
17 | |
18 | puts "Prepare boolean operation ..." |
19 | dchrono h0 reset; dchrono h0 start |
20 | bop b1 b2 |
21 | dchrono h0 stop; set CPU_time0_List [dchrono h0 show] |
22 | regexp {CPU user time: ([-0-9.+eE]+) seconds} $CPU_time0_List full CPU_user_time0 |
23 | puts "CPU_user_time0=${CPU_user_time0}" |
24 | |
25 | puts "Start boolean operation ..." |
26 | dchrono h reset; dchrono h start |
27 | # |
28 | # BOOLEAN OPERATION ----- START |
29 | # |
30 | for {set i 1} {$i <= ${NbTests}} {incr i} { |
31 | bopcut result |
32 | } |
33 | # |
34 | # BOOLEAN OPERATION ----- FINISH |
35 | # |
36 | dchrono h stop; set CPU_time_List [dchrono h show] |
37 | regexp {CPU user time: ([-0-9.+eE]+) seconds} $CPU_time_List full CPU_user_time |
38 | puts "Finish boolean operation ..." |
39 | puts "CPU_user_time=${CPU_user_time}" |
40 | set CPU_user_time [expr ${CPU_user_time} / ${NbTests}] |
41 | puts "CPU_user_time=${CPU_user_time}" |
42 | |
58cf74e0 |
43 | checkprops result -s 3.05118e+07 |
44 | checkshape result |
61c421bf |
45 | |
46 | # Analysis of "nbshapes res" |
a4eba920 |
47 | checknbshapes result -vertex 61 -edge 87 -wire 44 -face 36 -shell 1 -solid 1 -compsolid 0 -compound 1 -shape 231 |
5747059b |
48 | checkview -display result -2d -path ${imagedir}/${test_image}.png |