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