0025952: Wrong intersection curve
[occt.git] / tests / lowalgos / intss / bug26509_3
CommitLineData
cdcf6fc2 1puts "========"
2puts "0026509: Wrong intersection curve(s) obtained for pair of faces."
3puts "========"
4puts ""
5
6circle c1 0 0 0 0 -1 0 75
7circle c2 0 0 0 0 -1 0 65
8mkedge c1 c1
9mkedge c2 c2
10wire c1 c1
11wire c2 c2
12orientation c2 R
13mkplane f1 c1 1
14add c2 f1
15prism p1 f1 0 1000 0
16trotate p1 0 0 0 0 0 1 180
17circle c3 50 500 -2000 0 0 1 50
18mkedge c3 c3
19wire c3 c3
20mkplane f2 c3 1
21prism p2 f2 0 0 4000
22explode p1 f
23explode p2 f
24trotate p2_1 0 500 0 1 0 0 -77
25trotate p2_1 0 0 0 0 0 1 180
26trotate p1_2 0 0 0 1.22464679914735e-16 1 0 1.57079632679489655800*180/pi
27
28regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} [bopcurves p1_2 p2_1 -2d] full Toler NbCurv
29
30checkreal Tolerance $Toler 3.6430300265667996e-07 0.0 0.1
31
32if {$NbCurv != 2} {
33 puts "Error: Please check NbCurves for intersector"
34}
35
36puts "Check whether the intersection result is closed in 3D"
37bsection result p1_2 p2_1
38
39checksection result -r 0
40checkmaxtol result -ref 4.0e-7
41checkprops result -l 1881.92
42
43checkview -display result -2d -path ${imagedir}/${test_image}.png