d9ca2e0c |
1 | restore [locate_data_file bug29481_ex3.brep] s |
2 | explode s f |
3 | |
4 | # remove the gaps in each solid |
5 | compound s_7 s_8 s_9 gap1 |
6 | compound s_11 s_12 s_17 gap2 |
7 | |
8 | removefeatures res1 s gap1 |
9 | checkshape res1 |
10 | checkprops res1 -s 1200 -v 1875 |
11 | checknbshapes res1 -vertex 21 -edge 35 -wire 17 -face 17 -shell 2 -solid 2 |
12 | CheckIsFeatureRemoved gap1 {e f} |
13 | |
14 | # check that the common face is still shared |
15 | if {![regexp "OK" [bopcheck res1]]} { |
16 | puts "Error: sharing is lost after removal" |
17 | } |
18 | |
19 | # check modification of the common face |
20 | rfmodified m6 s_6 |
21 | checkprops m6 -s 100 |
22 | |
23 | # check modification of the solid 1 |
24 | explode s |
25 | rfmodified m1 s_1 |
26 | checkprops m1 -s 600 -v 1000 |
27 | |
28 | |
29 | removefeatures res2 s gap2 |
30 | checkshape res2 |
31 | checkprops res2 -s 1200 -v 1875 |
32 | checknbshapes res2 -vertex 21 -edge 35 -wire 17 -face 17 -shell 2 -solid 2 |
33 | CheckIsFeatureRemoved gap2 {e f} |
34 | |
35 | # check that the common face is still shared |
36 | if {![regexp "OK" [bopcheck res2]]} { |
37 | puts "Error: sharing is lost after removal" |
38 | } |
39 | |
40 | # check modification of the common face |
41 | rfmodified m6 s_6 |
42 | checkprops m6 -s 100 |
43 | |
44 | # check modification of the solid 1 |
45 | explode s |
46 | rfmodified m2 s_2 |
47 | checkprops m2 -s 600 -v 1000 |