d9ca2e0c |
1 | restore [locate_data_file bug28840_5.brep] s |
2 | explode s f |
3 | |
4 | compound s_3 s_8 s_29 s_2 s_1 feature1 |
5 | compound s_15 s_10 s_6 s_18 s_9 s_13 s_11 feature2 |
6 | compound s_19 s_14 s_7 s_16 s_17 s_12 feature3 |
7 | |
8 | # remove first feature |
9 | removefeatures res1 s feature1 |
10 | checkshape res1 |
11 | checkprops res1 -s 19165.2 -v 142408 -deps 1.e-7 |
12 | checknbshapes res1 -vertex 31 -edge 53 -wire 25 -face 24 -shell 1 -solid 1 -t |
13 | CheckIsFeatureRemoved feature1 {v e f} |
14 | |
15 | |
16 | # prepare for removal of the second feature |
17 | compound mfeature2 |
18 | foreach f [explode feature2 f] { |
19 | if {[regexp "has not been modified" [rfmodified fm $f]]} { |
20 | add $f mfeature2 |
21 | } else { |
22 | add fm mfeature2 |
23 | } |
24 | } |
25 | |
26 | # remove second feature |
27 | removefeatures res2 res1 mfeature2 |
28 | checkshape res2 |
29 | checkprops res2 -s 19396.1 -v 141748 -deps 1.e-7 |
30 | checknbshapes res2 -vertex 24 -edge 39 -wire 18 -face 17 -shell 1 -solid 1 -t |
31 | CheckIsFeatureRemoved mfeature2 {v e f} |
32 | |
33 | # prepare for removal of the third feature |
34 | compound mfeature3 |
35 | foreach f [explode feature3 f] { |
36 | if {[regexp "has not been modified" [rfmodified fm $f]]} { |
37 | add $f mfeature3 |
38 | } else { |
39 | add fm mfeature3 |
40 | } |
41 | } |
42 | |
43 | # remove the third feature |
44 | removefeatures result res2 mfeature3 |
45 | checkshape result |
46 | checkprops result -s 19692.7 -v 142463 -deps 1.e-7 |
47 | checknbshapes result -vertex 16 -edge 24 -wire 12 -face 11 -shell 1 -solid 1 -t |
48 | CheckIsFeatureRemoved mfeature3 {v e f} |
49 | |
50 | checkview -display result -2d -path ${imagedir}/${test_image}.png |