d9ca2e0c |
1 | restore [locate_data_file bug29481_ex1.brep] s |
2 | explode s f |
3 | |
4 | # removal of the cylindrical spike on the shape |
5 | |
6 | removefeatures result s s_15 s_21 s_22 |
7 | checkshape result |
8 | checkprops result -s 449.707 -v 186.844 -deps 1.e-7 |
9619ef4c |
9 | checknbshapes result -vertex 30 -edge 48 -wire 20 -face 18 -shell 1 -solid 1 |
d9ca2e0c |
10 | CheckIsFeatureRemoved s_15 {v e f} |
11 | CheckIsFeatureRemoved s_21 {v e f} |
12 | CheckIsFeatureRemoved s_22 {v e f} |
13 | |
4f7d41ea |
14 | # get history of the operation |
15 | savehistory rf_hist |
16 | |
d9ca2e0c |
17 | # check modification of the top face |
4f7d41ea |
18 | modified m1 rf_hist s_1 |
d9ca2e0c |
19 | checkprops m1 -s 175.593 |
9619ef4c |
20 | checknbshapes m1 -vertex 12 -edge 12 -wire 2 -face 1 |
d9ca2e0c |
21 | |
22 | # check that no new intersections have been created |
4f7d41ea |
23 | if {![regexp "No shapes were generated" [generated g1 rf_hist s_1]]} { |
d9ca2e0c |
24 | puts "Error: incorrect feature removal" |
25 | } |
26 | |
27 | checkview -display result -2d -path ${imagedir}/${test_image}.png |