0031939: Coding - correction of spelling errors in comments [part 7]
[occt.git] / tests / bugs / modalg_2 / bug251_1
CommitLineData
a87752f3 1puts "================"
e121dd4d 2puts "OCC251: Section of two faces f1 and f2 depends on order of arguments: section r1 f1 f2 and section r2 f2 f1 give different results, one of result is invalid - overlapped edges."
a87752f3 3puts "================"
4puts ""
a87752f3 5
6restore [locate_data_file OCC251.brep] f
7explode f
352ffd73 8checkshape f_1
9checkshape f_2
a87752f3 10
11bsection result f_1 f_2
12explode result
13
e121dd4d 14foreach a [explode result e] {
15 foreach b [explode result e] {
16 if { ![regexp {not} [compare b_1 n_1]] } {
17 continue;
18 }
19
20 set coe [checkoverlapedges e1 e2 5.0e-5]
21
22 puts "$a <-> $b: $coe"
7b5e532f 23 if { [regexp "Edges are not overlapped" $coe] != 1 } {
24 puts "Error: $a and $b are overlapped"
a87752f3 25 }
e121dd4d 26 }
a87752f3 27}
28
58cf74e0 29checkprops result -l 1.
30checkshape result
e121dd4d 31checksection result -r 2
32
33smallview
34don result*
35fit
36
37checkview -screenshot -2d -path ${imagedir}/${test_image}.png