0023150: Command sewing produce incorrect results on test grid csw.
[occt.git] / tests / bugs / modalg_5 / bug25742_1
CommitLineData
b5ef9d91 1puts "============"
2puts "OCC25742"
3puts "============"
4puts ""
5###############################
6## A partition of 2 shapes stresses a performance issue
7###############################
8
9if { [regexp {Debug mode} [dversion]] } {
10 if { [regexp {Windows} [dversion]] } {
11 set max_time 150
12 } else {
13 set max_time 100
14 }
15} else {
16 if { [regexp {Windows} [dversion]] } {
17 set max_time 30
18 } else {
19 set max_time 20
20 }
21}
22
23restore [locate_data_file bug25742_pipeFiss.brep] b1
24restore [locate_data_file bug25742_shellFiss.brep] b2
25
26bclearobjects
27bcleartools
28baddobjects b1
29baddtools b2
30
31dchrono h reset
32dchrono h start
33
34bfillds
35bbuild result
36
37dchrono h stop
38set q [dchrono h show]
39
40regexp {CPU user time: ([-0-9.+eE]+) seconds} $q full z
41puts "$z"
42
43if { $z > ${max_time} } {
44 puts "Elapsed time of bbuild is more than ${max_time} seconds - Error"
45} else {
46 puts "Elapsed time of bbuild is less than ${max_time} seconds - OK"
47}
48
49set square 280627
50
51set nbshapes_expected "
52Number of shapes in shape
53 VERTEX : 14
54 EDGE : 24
55 WIRE : 11
56 FACE : 10
57 SHELL : 1
58 SOLID : 0
59 COMPSOLID : 0
60 COMPOUND : 1
61 SHAPE : 61
62"
5ae01c85 63checknbshapes result -ref "${nbshapes_expected}" -t -m "Partition of 2 shapes"
b5ef9d91 64
65set 3dviewer 1