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