0028324: Configuration, genproj.tcl - compilation error while targeting OS X 10.8...
[occt.git] / tests / bugs / modalg_1 / bug10160_11
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 bopcut 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
58cf74e0 41checkprops result -s 3.05154e+07
42checkshape result
61c421bf 43
44# Analysis of "nbshapes res"
a4eba920 45checknbshapes result -vertex 96 -edge 143 -wire 51 -face 48 -shell 1 -solid 1 -compsolid 0 -compound 1 -shape 341
5747059b 46checkview -display result -2d -path ${imagedir}/${test_image}.png