0027341: Incorrect exact HLR results
[occt.git] / tests / bugs / modalg_6 / bug26980
CommitLineData
714c3bfc 1puts "========"
2puts "OCC26980"
3puts "========"
4puts ""
5#################################
6# Intersection part of Boolean algorithm spends much system time and system memory
7#################################
8
9set max_time 120
10set mem_max_wsetpeak 500000000
11
12
13bclearobjects;
14bcleartools;
15
16restore [locate_data_file bug26980-cmp.brep] cmp
17
18puts [nbshapes cmp -t]
19
20eval baddobjects [explode cmp]
21
22dchrono cr reset
23dchrono cr start
24
25bfillds
26bbuild result
27
28dchrono cr stop
29
30set mem_wsetpeak [meminfo wsetpeak]
31
32if { ${mem_wsetpeak} > ${mem_max_wsetpeak}} {
33 puts "Error : there is memory problem (${mem_wsetpeak} MBytes has been allocated)"
34}
35
36set chrono_info [dchrono cr show]
37regexp {CPU user time: ([-0-9.+eE]+) seconds} $chrono_info full CPU_time
38if { $CPU_time > ${max_time} } {
39 puts "CPU user time of Boolean operation is more than ${max_time} seconds - Error"
40} else {
41 puts "CPU user time of Boolean operation is less than ${max_time} seconds - OK"
42}
43
44set nbshapes_expected "
45 VERTEX : 365
46 EDGE : 793
47 WIRE : 531
48 FACE : 531
49 SHELL : 102
50 SOLID : 101
51 COMPSOLID : 0
52 COMPOUND : 1
53 SHAPE : 2424
54"
55
56checknbshapes result -ref ${nbshapes_expected} -t
57
58smallview
59donly result
60fit
61
62set 2dviewer 1