0029807: [Regression to 7.0.0] Impossible to cut cone from prism
[occt.git] / tests / bugs / modalg_6 / bug26151_2
CommitLineData
d0820f2e 1puts "============"
2puts "OCC26151"
3puts "============"
4puts ""
5###############################
6## Wrong result obtained by intersection algorithm.
7###############################
8
9restore [locate_data_file bug26132_shape.brep] q
10
11explode q
12copy q_1 b1
13copy q_2 b2
14
15explode b1 f
16explode b2
17explode b2_11 f
18
19set log [bopcurves b1_1 b2_11_2 -2d]
20
21#Faces almost coincide. Therefore, there is no point in
22#returning some intersection line.
23#Theoretically, the intersection result is some region (tangent zone).
24
25if { [regexp "has no 3d curve" ${log}] != 1 } {
26 puts "Error : Wrong result obtained by intersection algorithm"
27} else {
28 puts "OK : Good result obtained by intersection algorithm"
29}
30
31smallview
32fit
33xwd $imagedir/${test_image}.png