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