0026938: Boolean operations fail between two ellipsoids
[occt.git] / tests / bugs / modalg_1 / bug10160_1
1 puts "TODO OCC11111 ALL: Error :  is WRONG because number of "
2
3 puts "============"
4 puts "OCC10160"
5 puts "============"
6 puts ""
7 #######################################################################
8 # BOP perfomance improvemen
9 #######################################################################
10
11 set BugNumber OCC10160
12
13 restore [locate_data_file OCC10160-1.brep] b1 
14 restore [locate_data_file OCC10160-2.brep] b2 
15
16 set NbTests 3
17
18 dchrono h0 reset
19 dchrono h0 start
20
21 bop b1 b2
22 dchrono h0 stop
23 set CPU_time0_List [dchrono h0 show]
24 regexp {CPU user time: ([-0-9.+eE]+) seconds} $CPU_time0_List full CPU_user_time0
25 puts "CPU_user_time0=${CPU_user_time0}"
26
27 puts "Start boolean operation ..."
28 dchrono h reset; dchrono h start
29 #
30 # BOOLEAN OPERATION ----- START
31 #
32 for {set i 1} {$i <= ${NbTests}} {incr i} {
33    bopcommon result
34 }
35 #
36 # BOOLEAN OPERATION ----- FINISH
37 #
38 dchrono h stop; set CPU_time_List [dchrono h show]
39 regexp {CPU user time: ([-0-9.+eE]+) seconds} $CPU_time_List full CPU_user_time
40
41 puts "Finish boolean operation ..."
42 puts "CPU_user_time=${CPU_user_time}"
43 set CPU_user_time [expr ${CPU_user_time} / ${NbTests}]
44 puts "CPU_user_time=${CPU_user_time}"
45
46 checkprops result -s 1.30062e+07 
47 checkshape result
48
49 # Analysis of "nbshapes res"
50 checknbshapes result -vertex 20 -edge 28 -wire 16 -face 15 -shell 3 -solid 3 -compsolid 0 -compound 1 -shape 86
51 checkview -display result -2d -path ${imagedir}/${test_image}.png