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