0027045: firsthole & holend commands work incorrectly
[occt.git] / tests / bugs / modalg_6 / bug26684_1
CommitLineData
83bb023e 1puts "============"
2puts "OCC26684"
3puts "============"
4puts ""
5###################################################
6## Big tolerance values of the intersection curves
7###################################################
8
9brestore [locate_data_file CTO909_IR2_TuyoPipe20.brep] b1
10brestore [locate_data_file CTO909_IR2_sphere1_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} 5.8654166482879483e-009 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
29checkreal "Reached tolerance" ${Tolerance_2d} 1.4569392656749484e-008 1.e-7 0
30
31set only_screen_axo 1