0027252: Implicit-implicit intersection (Cylinder-Plane) loses intersection curve
[occt.git] / tests / bugs / modalg_6 / bug27252_1
CommitLineData
f542b7bb 1puts "============"
2puts "OCC27252"
3puts "============"
4puts ""
5#######################################################################
6# Implicit-implicit intersection (Cylinder-Plane) loses intersection curve
7#######################################################################
8
9set GoodNbCurv 1
10set MaxTol 1.0e-7
11
12restore [locate_data_file bug27221.brep] a
13explode a
14mkplane f a_2
15prism p f -25 0 0
16explode a_1 f
17explode p f
18don a_1_7 p_3
19
20set log [bopcurves a_1_7 p_3 -2d]
21
22regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
23
24if {${NbCurv} != ${GoodNbCurv}} {
25 puts "Error: Curve Number is bad!"
26}
27
28if {${Toler} > ${MaxTol}} {
29 puts "Error: Tolerance is too big!"
30}
31
32smallview
33don c_*
34fit
35display a_1_7 p_3
36
37checkview -screenshot -2d -path ${imagedir}/${test_image}.png