0029807: [Regression to 7.0.0] Impossible to cut cone from prism
[occt.git] / tests / bugs / modalg_7 / bug28366
CommitLineData
9026dea8 1puts "TODO OCC28366 ALL: Error: BOP"
2
3puts "============"
4puts "OCC28366"
5puts "============"
6puts ""
7#############################################
8# BOP Common fails with solid and planar face
9#############################################
10
11pload XDE
12
13stepread [locate_data_file bug28366_fuselage.stp] a *
14renamevar a_1 a
15
16# Sew all the faces and make a solid.
17explode a f
18sewing shell 1.0e-6 a_1 a_2 a_3 a_4 a_5 a_6 a_7 a_8
19mkvolume fuselage shell
20
21# Make a xy-plane at the origin.
22plane pln
23mkface face pln
24
25# Try a bcommon
26set Log_1 [bcommon common face fuselage]
27if {[regexp "Warning" ${Log_1}] == 1} {
28 puts "Error: BOP Common fails with solid and planar face"
29}
30set Log [bopcheck common]
31if {[regexp "This shape seems to be OK" ${Log}] != 1} {
32 puts "Error: BOP Common fails with solid and planar face"
33}
34checkview -display common -2d -path ${imagedir}/${test_image}_common.png
35
36# Try bsection
37set Log_2 [bsection section face fuselage]
38if {[regexp "Warning" ${Log_1}] == 1} {
39 puts "Error: BOP Section fails with solid and planar face"
40}
41set Log [bopcheck section]
42if {[regexp "This shape seems to be OK" ${Log}] != 1} {
43 puts "Error: BOP Section fails with solid and planar face"
44}