0030281: Regression to 7.2.0: Modeling Algorithms - Wrong result of CUT operation
[occt.git] / tests / bugs / modalg_7 / bug30281
CommitLineData
80da8585 1puts "========"
2puts "0030281: Regression to 7.2.0: Modeling Algorithms - Wrong result of CUT operation"
3puts "========"
4puts ""
5
6restore [locate_data_file bug30281_shape.brep] s1
7restore [locate_data_file bug30281_tool.brep] s2
8
9bclearobjects
10bcleartools
11baddobjects s1
12baddtools s2
13bfillds
14
15bbop r0 0
16bbop r1 1
17bbop r2 2
18bbop r3 3
19bbop r4 4
20
21foreach r {r0 r1 r2 r3 r4} {
22 checkshape $r
23 if {![regexp "OK" [bopcheck $r]]} {
24 puts "Error: the result of BOP is self-interfering shape"
25 }
26}
27
28checknbshapes r0 -wire 112 -face 88 -shell 4 -solid 4
29checkprops r0 -s 590506 -v 7.584e+006
30
31checknbshapes r1 -wire 58 -face 46 -shell 1 -solid 1
32checkprops r1 -s 976583 -v 2.24e+007
33
34checknbshapes r2 -wire 94 -face 82 -shell 1 -solid 1
35checkprops r2 -s 1.00882e+006 -v 1.4816e+007
36
37checknbshapes r3 -shell 0 -solid 0
38checkprops r3 -s empty -v empty
39
40checkprops r4 -l 9614.01
41
42checkview -display r2 -2d -path ${imagedir}/${test_image}.png