0030760: Modeling Algorithms - Intersection fails in Occt 7.3.0
[occt.git] / tests / bugs / modalg_7 / bug30395
CommitLineData
d4db985b 1puts "========"
2puts "0030395: DRAW bop: Some sub-shapes of some of the argument become connected through other shapes and the argument became self-interfered."
3puts "========"
4puts ""
5
6restore [locate_data_file bug30395_s1.brep] s1
7restore [locate_data_file bug30395_fds.brep] fds
8
9bclearobjects
10bcleartools
11baddobjects s1
12baddtools fds
13bfillds
14
15bbop rcommon 0
16bbop rfuse 1
17bbop rcut 2
18bbop rcut21 3
19bbop rsection 4
20
21foreach r {rcommon rfuse rcut rcut21 rsection} {
22 checkshape $r
23 if {![regexp "OK" [bopcheck $r]]} {
24 puts "Error: $r is self-interfered shape"
25 }
26}
27
28checknbshapes rcommon -wire 8 -face 8 -shell 1 -solid 1
29checkprops rcommon -s 11331.9 -v 30686.2
30
31checknbshapes rfuse -wire 14 -face 12 -shell 1 -solid 1
32checkprops rfuse -s 105935 -v 362551
33
34checknbshapes rcut -wire 14 -face 12 -shell 1 -solid 1
35checkprops rcut -s 21665.6 -v 25031.2
36
37checknbshapes rcut21 -wire 8 -face 8 -shell 1 -solid 1
38checkprops rcut21 -s 95601 -v 306833
39
40checksection rsection -r 0
41checkprops rsection -l 554.848
42
43checkview -display rcommon -2d -path ${imagedir}/${test_image}.png