| 1 | puts "============" |
| 2 | puts "OCC10160" |
| 3 | puts "============" |
| 4 | puts "" |
| 5 | ####################################################################### |
| 6 | # BOP perfomance improvemen |
| 7 | ####################################################################### |
| 8 | |
| 9 | set BugNumber OCC10160 |
| 10 | |
| 11 | restore [locate_data_file OCC10160-2.brep] b1 |
| 12 | restore [locate_data_file OCC10160-3.brep] b2 |
| 13 | |
| 14 | set NbTests 3 |
| 15 | |
| 16 | puts "Prepare boolean operation ..." |
| 17 | dchrono h0 reset; dchrono h0 start |
| 18 | bop b1 b2 |
| 19 | dchrono h0 stop; set CPU_time0_List [dchrono h0 show] |
| 20 | regexp {CPU user time: ([-0-9.+eE]+) seconds} $CPU_time0_List full CPU_user_time0 |
| 21 | puts "CPU_user_time0=${CPU_user_time0}" |
| 22 | |
| 23 | puts "Start boolean operation ..." |
| 24 | dchrono h reset; dchrono h start |
| 25 | # |
| 26 | # BOOLEAN OPERATION ----- START |
| 27 | # |
| 28 | for {set i 1} {$i <= ${NbTests}} {incr i} { |
| 29 | bopcut result |
| 30 | } |
| 31 | # |
| 32 | # BOOLEAN OPERATION ----- FINISH |
| 33 | # |
| 34 | dchrono h stop; set CPU_time_List [dchrono h show] |
| 35 | regexp {CPU user time: ([-0-9.+eE]+) seconds} $CPU_time_List full CPU_user_time |
| 36 | puts "Finish boolean operation ..." |
| 37 | puts "CPU_user_time=${CPU_user_time}" |
| 38 | set CPU_user_time [expr ${CPU_user_time} / ${NbTests}] |
| 39 | puts "CPU_user_time=${CPU_user_time}" |
| 40 | |
| 41 | set square 3.05154e+07 |
| 42 | |
| 43 | # Analysis of "nbshapes res" |
| 44 | set nb_v_good 96 |
| 45 | set nb_e_good 143 |
| 46 | set nb_w_good 51 |
| 47 | set nb_f_good 48 |
| 48 | set nb_sh_good 1 |
| 49 | set nb_sol_good 1 |
| 50 | set nb_compsol_good 0 |
| 51 | set nb_compound_good 1 |
| 52 | set nb_shape_good 341 |
| 53 | |
| 54 | set 2dviewer 0 |