File: bug62

package info (click to toggle)
oce 0.15-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 302,472 kB
  • ctags: 210,903
  • sloc: cpp: 1,165,052; ansic: 75,256; sh: 11,901; tcl: 4,488; python: 2,867; makefile: 337; perl: 37; csh: 12
file content (52 lines) | stat: -rwxr-xr-x 1,125 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
set os "ALL"

if {[array get env os_type] != ""} {
  set os $env(os_type)
}

if {[string compare $os "MacOS"] == 0} {
  puts "TODO #23828 MacOS: Tcl Exception: sh is not a topological shape!!!"
  puts "TODO #23828 MacOS: TEST INCOMPLETE"
} else {
  #puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
  #puts "TODO OCC12345 ALL: Error : The square of result shape is"
}

puts "================"
puts "OCC62"
puts "BUC61001"
puts "================"

cpulimit 1400
restore [locate_data_file OCC62.brep] sh 

explode sh 
checkshape sh

bfuse res1 sh_1 sh_3
checkshape res1

bfuse res2 res1 sh_2 
checkshape res2

bfuse res3 res2 sh_6
checkshape res3

bfuse res4 res3 sh_4
checkshape res4

bfuse res5 res4 sh_5
checkshape res5

renamevar res5 result

set OCC62_square 1.23063e+7
puts "The expected square is ${OCC62_square}"

set sq_persent 0.03
regexp {Mass +: +([-0-9.+eE]+)} [sprops result] full m
if { (${OCC62_square} != 0 && [expr abs(${OCC62_square} - $m)/${OCC62_square}] > ${sq_persent}) || (${OCC62_square} == 0 && $m != 0) } {
   puts "Error : The square of result shape is $m"
}

set 2dviewer 0