0026855: Draw commands to debug Boolean Operations Algorithm
[occt.git] / tests / bugs / modalg_1 / bug10160_1
CommitLineData
a4eba920 1puts "TODO OCC11111 ALL: Error : is WRONG because number of "
61c421bf 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
18dchrono h0 reset
19dchrono h0 start
20
21bop b1 b2
22dchrono h0 stop
23set CPU_time0_List [dchrono h0 show]
24regexp {CPU user time: ([-0-9.+eE]+) seconds} $CPU_time0_List full CPU_user_time0
25puts "CPU_user_time0=${CPU_user_time0}"
26
27puts "Start boolean operation ..."
28dchrono h reset; dchrono h start
29#
30# BOOLEAN OPERATION ----- START
31#
32for {set i 1} {$i <= ${NbTests}} {incr i} {
33 bopcommon result
34}
35#
36# BOOLEAN OPERATION ----- FINISH
37#
38dchrono h stop; set CPU_time_List [dchrono h show]
39regexp {CPU user time: ([-0-9.+eE]+) seconds} $CPU_time_List full CPU_user_time
40
41puts "Finish boolean operation ..."
42puts "CPU_user_time=${CPU_user_time}"
43set CPU_user_time [expr ${CPU_user_time} / ${NbTests}]
44puts "CPU_user_time=${CPU_user_time}"
45
46set square 1.30062e+07
47
48# Analysis of "nbshapes res"
a4eba920 49checknbshapes result -vertex 20 -edge 28 -wire 16 -face 15 -shell 3 -solid 3 -compsolid 0 -compound 1 -shape 86
61c421bf 50set 2dviewer 0