0026938: Boolean operations fail between two ellipsoids
[occt.git] / tests / bugs / modalg_1 / buc60882
CommitLineData
a87752f3 1puts "============"
2puts "BUC60882"
3puts "============"
4puts ""
5#######################################################################
6## The edge is corrupted after applying command "fsameparameter": tolerance is increased up to 1e+50
7#######################################################################
8
9pload XDE
a87752f3 10
11restore [locate_data_file BUC60882_samepar.brep] result
12
13set che [checkshape result]
14
15if { [regexp {Faulty} $che ] == 1 } {
16 puts "Warning BUC60882: Source shape is NOT correct. It was detected by Checkshape command"
17} else {
18 puts "BUC60882 OK: Source shape is valid"
19}
20
21puts "*** Before : "
22
23regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance result] full MaxTol
24
25puts "MaxTolerance = $MaxTol"
26if { $MaxTol > 1 } {
27 puts "Warning : Tolerance of Source edge is more then 1.0"
28} else {
29 puts " Tolerance of source edge is less then 1.0"
30}
31
32fsameparameter result 1e-5
33
34puts "*** After : "
35regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance result] full MaxTol_1
36
37puts "MaxTolerance = $MaxTol_1"
38if { $MaxTol_1 > $MaxTol } {
39 puts [format "Faulty BUC60882 : Tolerance of Result edge increased and it is equal to %s" $MaxTol_1]
40} else {
41 puts " BUC60882 OK: Tolerance of Result edge is less or equal to tolerance of Sourse edge."
42}
43
58cf74e0 44checkprops result -l 1768.53
45checkshape result
46checksection result
5747059b 47checkview -display result -2d -path ${imagedir}/${test_image}.png