Restoring test cases removed by last commit.
[occt.git] / tests / bugs / moddata / bug705
CommitLineData
f1aa2b62 1
2puts "=========="
3puts "OCC705 "
4puts "=========="
5puts ""
6###########################################################
7## The matrix of inertia for sphere computed incorrectly.
8## In the secod case the not diagonal elements of the inertia matrix are not close to zero.
9###########################################################
10
11psphere result 10 10 10
12ttranslate result 10 10 10
13trotate result 0 0 0 0 1 1 34
14
15set list [vprops result]
16set inertia [regexp -all -inline { +[-0-9.+eE]+ +[-0-9.+eE]+ +[-0-9.+eE]+} $list]
17set matrix [regexp -all -inline {[-0-9.+eE]+} $inertia]
18
19set matrix12 [lindex $matrix 1]
20set matrix21 [lindex $matrix 3]
21set matrix23 [lindex $matrix 5]
22set matrix32 [lindex $matrix 7]
23
24if { ${matrix12} != 0. || ${matrix21} != 0. || ${matrix23} != 0. || ${matrix32} != 0. } {
25 puts "Faulty OCC705"
26} else {
27 puts "OCC705 OK"
28}
29
30set length 123.755
31set 2dviewer 0