b5ef9d91 |
1 | puts "============" |
2 | puts "OCC25742" |
3 | puts "============" |
4 | puts "" |
5 | ############################### |
6 | ## A partition of 2 shapes stresses a performance issue |
7 | ############################### |
8 | |
9 | if { [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 | |
23 | restore [locate_data_file bug25742_pipeFiss.brep] b1 |
24 | restore [locate_data_file bug25742_shellFiss.brep] b2 |
25 | |
26 | bclearobjects |
27 | bcleartools |
28 | baddobjects b1 |
29 | baddtools b2 |
30 | |
31 | dchrono h reset |
32 | dchrono h start |
33 | |
34 | bfillds |
35 | bbuild result |
36 | |
37 | dchrono h stop |
38 | set q [dchrono h show] |
39 | |
40 | regexp {CPU user time: ([-0-9.+eE]+) seconds} $q full z |
41 | puts "$z" |
42 | |
43 | if { $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 | |
49 | set square 280627 |
50 | |
51 | set nbshapes_expected " |
52 | Number 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 |
63 | checknbshapes result -ref "${nbshapes_expected}" -t -m "Partition of 2 shapes" |
b5ef9d91 |
64 | |
65 | set 3dviewer 1 |