0027664: Incomplete intersection curve from the attached shapes
[occt.git] / tests / bugs / modalg_6 / bug26684_2
CommitLineData
83bb023e 1puts "============"
2puts "OCC26684"
3puts "============"
4puts ""
5###################################################
6## Big tolerance values of the intersection curves
7###################################################
8
9brestore [locate_data_file IR2_TuyoPipeBSpline_20_draw2.brep] b1
10brestore [locate_data_file IR2_sphere2_20.brep] b2
11
12explode b1 f; copy b1_1 f1
13explode b2 f; copy b2_1 f2
14
15smallview
16donly f1 f2
17fit
18
19# 1 case
20set bop_info [bopcurves f1 f2]
21regexp {Tolerance Reached=([-0-9.+eE]+)} $bop_info full Tolerance
22
23checkreal "Reached tolerance" ${Tolerance} 1.2530391548405894e-008 1.e-7 0
24
25# 2 case
26set bop_info_2d [bopcurves f1 f2 -2d]
27regexp {Tolerance Reached=([-0-9.+eE]+)} $bop_info_2d full Tolerance_2d
28
a09c8f3a 29checkreal "Reached tolerance" ${Tolerance_2d} 1.4134494834137484e-005 0 1.e-2
83bb023e 30
5747059b 31checkview -screenshot -2d -path ${imagedir}/${test_image}.png