0023457: Slow text rendering
[occt.git] / tests / bugs / modalg_1 / bug10160_7
1 puts "TODO OCC11111 ALL: Error : Result shape is WRONG"
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
43 set square 3.00597e+07
44
45 # Analysis of "nbshapes res"
46 set nb_v_good 61
47 set nb_e_good 87
48 set nb_w_good 44
49 set nb_f_good 36
50 set nb_sh_good 1
51 set nb_sol_good 1
52 set nb_compsol_good 0
53 set nb_compound_good 1
54 set nb_shape_good 231
55
56 set 2dviewer 0