0026745: Boolean Cut produces invalid result
[occt.git] / tests / bugs / modalg_6 / bug26748
1 puts "========"
2 puts "OCC26748"
3 puts "========"
4 puts ""
5 #################################################
6 # Section between cylindrical and planar faces is not found
7 #################################################
8
9 set ExpTol 5.0e-8
10 set GoodNbCurv 1
11
12 restore [locate_data_file bug26745_BodyA.brep] a
13 restore [locate_data_file bug26745_BodyB.brep] b
14
15 explode a f
16 explode b f
17
18 set log [bopcurves a_9 b_1 -2d]
19
20 regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
21
22 if {${NbCurv} != ${GoodNbCurv}} {
23   puts "Error: Number of curves is bad!"
24 }
25
26 checkreal TolReached $Toler $ExpTol 5.0e-8 0.0
27
28 smallview
29 don c_*
30 fit
31 disp a_9 b_1
32
33 checkview -screenshot -2d -path ${imagedir}/${test_image}.png