1 restore [locate_data_file bug28840_5.brep] s
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
9 removefeatures res1 s feature1
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}
15 # get history of the operation
18 # prepare for removal of the second feature
20 foreach f [explode feature2 f] {
21 if {[regexp "has not been modified" [modified fm rf_hist $f]]} {
28 # remove second feature
29 removefeatures res2 res1 mfeature2
31 checkprops res2 -s 19396.1 -v 141748 -deps 1.e-7
32 checknbshapes res2 -vertex 24 -edge 39 -wire 18 -face 17 -shell 1 -solid 1 -t
33 CheckIsFeatureRemoved mfeature2 {v e f}
35 # get history of the operation
38 # prepare for removal of the third feature
40 foreach f [explode feature3 f] {
41 if {[regexp "has not been modified" [modified fm rf_hist2 $f]]} {
48 # remove the third feature
49 removefeatures result res2 mfeature3
51 checkprops result -s 19692.7 -v 142463 -deps 1.e-7
52 checknbshapes result -vertex 16 -edge 24 -wire 12 -face 11 -shell 1 -solid 1 -t
53 CheckIsFeatureRemoved mfeature3 {v e f}
55 checkview -display result -2d -path ${imagedir}/${test_image}.png