0030760: Modeling Algorithms - Intersection fails in Occt 7.3.0
[occt.git] / tests / bugs / modalg_7 / bug27928
CommitLineData
56062e13 1puts "=============================================================="
2puts "OCC27928: BOP common produces empty compound"
3puts "=============================================================="
340054e1 4
5restore [locate_data_file bug27928_b1.brep] b1
6restore [locate_data_file bug27928_b2.brep] b2
7
56062e13 8bclearobjects
9bcleartools
10baddobjects b1
11baddtools b2
12bfillds
13
14bbop r0 0
15bbop r1 1
16bbop r2 2
17bbop r3 3
18bbop r4 4
340054e1 19
56062e13 20foreach r {r0 r1 r2 r3 r4} {
21 checkshape $r
22 if {![regexp "OK" [bopcheck $r]]} {
23 puts "Error: the result of BOP is self-interfering shape"
24 }
340054e1 25}
56062e13 26
27checknbshapes r0 -wire 8 -face 8 -shell 1 -solid 1
28checkprops r0 -s 21820.6 -v 221499
29
30checknbshapes r1 -wire 14 -face 14 -shell 1 -solid 1
31checkprops r1 -s 22455.1 -v 224813
32
33checknbshapes r2 -wire 5 -face 5 -shell 1 -solid 1
34checkprops r2 -s 2075.44 -v 1489.33
35
36checknbshapes r3 -wire 5 -face 5 -shell 1 -solid 1
37checkprops r3 -s 2521.83 -v 1824.69
38
39checknbshapes r4 -vertex 12 -edge 18 -t
40checkprops r4 -l 825.645
41
42checkview -display r0 -2d -path ${imagedir}/${test_image}.png