| pload XDE | |
| stepread [locate_data_file bug29481_L3.step] s * | |
| copy s_1 s | |
| explode s f | |
| # Clear the shape from all features | |
| compound s_24 s_7 s_1 s_2 s_6 s_8 s_4 s_25 s_31 s_30 s_38 s_36 s_34 s_29 s_32 s_33 s_35 s_13 s_12 s_11 s_37 s_27 s_28 s_26 s_20 s_16 s_17 s_18 s_19 features | |
| removefeatures result s features | |
| checkshape result | |
| checkprops result -s 2333.55 -v 1047.62 -deps 1.e-7 | |
| checknbshapes result -vertex 8 -edge 12 -wire 6 -face 6 -shell 1 -solid 1 | |
| CheckIsFeatureRemoved features {v e f} | |
| # get history of the operation | |
| savehistory rf_hist | |
| # check modification of the top face | |
| modified m5 rf_hist s_5 | |
| checkprops m5 -s 1102.76 | |
| checknbshapes m5 -vertex 4 -edge 4 -wire 1 -face 1 | |
| # check modification of the bottom face | |
| modified m3 rf_hist s_3 | |
| checkprops m3 -equal m5 | |
| checknbshapes m5 -vertex 4 -edge 4 -wire 1 -face 1 | |
| # check modification of the side faces | |
| modified m10 rf_hist s_10 | |
| modified m14 rf_hist s_14 | |
| if {![regexp "same shapes" [compare m10 m14]]} { | |
| puts "Error: incorrect feature removal" | |
| } | |
| checkprops m10 -s 37.43 | |
| checknbshapes m10 -vertex 4 -edge 4 -wire 1 -face 1 | |
| modified m22 rf_hist s_22 | |
| checkprops m22 -equal s_22 | |
| modified m9 rf_hist s_9 | |
| modified m23 rf_hist s_23 | |
| if {![regexp "same shapes" [compare m9 m23]]} { | |
| puts "Error: incorrect feature removal" | |
| } | |
| checkprops m9 -s 26.5893 | |
| checknbshapes m9 -vertex 4 -edge 4 -wire 1 -face 1 | |
| modified m15 rf_hist s_15 | |
| modified m21 rf_hist s_21 | |
| if {![regexp "same shapes" [compare m15 m21]]} { | |
| puts "Error: incorrect feature removal" | |
| } | |
| checkprops m15 -equal m9 | |
| checknbshapes m15 -vertex 4 -edge 4 -wire 1 -face 1 |