5 ###############################
6 ## [Regression to 6.9.1] Huge tolerance obtained during intersection of cylinder and sphere
7 ###############################
13 restore [locate_data_file OCC13116_sh1.brep] b1
14 restore [locate_data_file OCC13116_sh2.brep] b2
19 set log1 [bopcurves b1_3 b2_1 -2d]
21 regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log1} full Toler NbCurv
23 if { ${Toler} > 0.0005} {
24 puts "Error: bad tolerance of result"
31 checkview -screenshot -2d -path ${imagedir}/${test_image}_3d_1.png
36 checkview -screenshot -2d -path ${imagedir}/${test_image}_2d_1.png
38 if {${NbCurv} != ${GoodNbCurv}} {
39 puts "Error: Number of curves is bad!"
42 # increasing tolerance values of the faces on Precision::Confusion()
43 # dramatically increased (before fixing) the tolerance of
44 # the produced section curves
46 settolerance b1_3 2.34623727264857e-007
47 settolerance b2_1 2.e-7
49 set log2 [bopcurves b1_3 b2_1 -2d]
51 regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log2} full Toler NbCurv
53 if { ${Toler} > 0.0005} {
54 puts "Error: bad tolerance of result"
61 checkview -screenshot -2d -path ${imagedir}/${test_image}_3d_2.png
66 checkview -screenshot -2d -path ${imagedir}/${test_image}_2d_2.png