0025138: SIGSEGV when sweeping along helix
[occt.git] / tests / bugs / modalg_6 / bug26251
CommitLineData
4b0cab06 1puts "============"
2puts "OCC26251"
3puts "============"
4puts ""
5###############################
6## Section curve cannot be found
7###############################
8
9restore [locate_data_file bug26251_b31_3.brep] b1
10restore [locate_data_file bug26251_tank31.brep] b2
11
12bsection result b1 b2
13
58cf74e0 14checkprops result -l 2.49934
15checkshape result
16checksection result
4b0cab06 17
18set nbshapes_expected "
19Number of shapes in shape
20 VERTEX : 3
21 EDGE : 2
22 WIRE : 0
23 FACE : 0
24 SHELL : 0
25 SOLID : 0
26 COMPSOLID : 0
27 COMPOUND : 1
28 SHAPE : 6
29"
30
31checknbshapes result -ref ${nbshapes_expected} -t -m "Section curve"
32
33explode b2 f
34copy b2_5 b2
35
36set NbCurves 0
37
38set log [bopcurves b1 b2 -2d]
39regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurves
40
41if {$NbCurves == 0} {
42 puts "Error: Intersection curve is not found"
43}
44
5747059b 45checkview -display result -3d -path ${imagedir}/${test_image}.png