0026431: Can't cut a sphere from a cylinder
[occt.git] / tests / bugs / modalg_1 / bug10160_3
CommitLineData
a4eba920 1puts "TODO OCC11111 ALL: Error : is WRONG because number of "
61c421bf 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-2.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 bopcut 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 2.36194e+07
43
44# Analysis of "nbshapes res"
a4eba920 45checknbshapes result -vertex 24 -edge 34 -wire 20 -face 19 -shell 4 -solid 4 -compsolid 0 -compound 1 -shape 106
61c421bf 46set 2dviewer 0