File: bug28366

package info (click to toggle)
opencascade 7.9.2%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 301,924 kB
  • sloc: cpp: 1,523,264; tcl: 10,159; cs: 5,173; java: 1,554; sh: 1,342; ansic: 827; xml: 699; makefile: 30; javascript: 22
file content (44 lines) | stat: -rwxr-xr-x 1,203 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
puts "TODO OCC28366 ALL: Error: BOP"

puts "============"
puts "OCC28366"
puts "============"
puts ""
#############################################
# BOP Common fails with solid and planar face
#############################################

pload XDE

stepread [locate_data_file bug28366_fuselage.stp] a *
renamevar a_1 a

# Sew all the faces and make a solid.
explode a f
sewing shell 1.0e-6 a_1 a_2 a_3 a_4 a_5 a_6 a_7 a_8 
mkvolume fuselage shell

# Make a xy-plane at the origin.
plane pln
mkface face pln

# Try a bcommon
set Log_1 [bcommon common face fuselage]
if {[regexp "Warning" ${Log_1}] == 1} {
    puts "Error: BOP Common fails with solid and planar face"
}
set Log [bopcheck common]
if {[regexp "This shape seems to be OK" ${Log}] != 1} {
    puts "Error: BOP Common fails with solid and planar face"
}
checkview -display common -2d -path ${imagedir}/${test_image}_common.png

# Try bsection
set Log_2 [bsection section face fuselage]
if {[regexp "Warning" ${Log_1}] == 1} {
    puts "Error: BOP Section fails with solid and planar face"
}
set Log [bopcheck section]
if {[regexp "This shape seems to be OK" ${Log}] != 1} {
    puts "Error: BOP Section fails with solid and planar face"
}