1 restore [locate_data_file bug29481_ex1.brep] s
4 # removal of the hole in the shape
6 removefeatures result s s_14 s_20
8 checkprops result -s 462.33 -v 197.735 -deps 1.e-7
9 checknbshapes result -vertex 31 -edge 48 -wire 20 -face 19 -shell 1 -solid 1
10 CheckIsFeatureRemoved s_14 {v e f}
11 CheckIsFeatureRemoved s_20 {v e f}
13 # get history of the operation
16 # check modification of the top and bottom faces
17 modified m1 rf_hist s_1
18 checkprops m1 -s 174.62
19 checknbshapes m1 -vertex 12 -edge 12 -wire 2 -face 1
21 modified m16 rf_hist s_16
22 checkprops m16 -s 194.429
23 checknbshapes m16 -vertex 10 -edge 10 -wire 1 -face 1
25 # check that no new intersections have been created
26 if {![regexp "No shapes were generated" [generated g1 rf_hist s_1]]} {
27 puts "Error: incorrect feature removal"
30 if {![regexp "No shapes were generated" [generated g16 rf_hist s_16]]} {
31 puts "Error: incorrect feature removal"
34 checkview -display result -2d -path ${imagedir}/${test_image}.png