0029807: [Regression to 7.0.0] Impossible to cut cone from prism
[occt.git] / tests / bugs / modalg_5 / bug25224
CommitLineData
e6cd0977 1puts "================"
2puts "OCC25224"
3puts "================"
4puts ""
5#######################################################################
6# The section curve between two cylindrical faces is incomplete
7#######################################################################
8
9restore [locate_data_file bug25224_Input_5.brep] b1
10restore [locate_data_file bug25224_Input_21.brep] b2
11
12# 1. bopcurves
13explode b1 f
14explode b2 f
15
16set log [bopcurves b1_1 b2_1]
17
18regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
19set MaxTol 1.e-7
20if {${Toler} > ${MaxTol}} {
21 puts "Error: Tolerance is too big!"
22}
3ad6d001 23checklength c_1 -l 0.52377379499528021
e6cd0977 24
25# 2. BOP
26bclearobjects
27bcleartools
28baddobjects b1
29baddtools b2
30bfillds
31bbuild result
32
58cf74e0 33checkprops result -s 21.4983
34checkshape result
e6cd0977 35
a4eba920 36checknbshapes result -vertex 10 -edge 19 -wire 13 -face 13 -shell 3 -solid 3 -compsolid 0 -compound 1 -shape 62
5747059b 37checkview -display result -3d -path ${imagedir}/${test_image}.png