0029481: Implementation of the Feature Removal algorithm
[occt.git] / tests / boolean / removefeatures / C2
1 restore [locate_data_file bug29481_ex2.brep] s
2 explode s f
3
4 # remove the gap 
5 compound s_7 s_8 s_9 s_10 gap
6 removefeatures res1 s gap
7 checkshape res1
8 checkprops res1 -s 624 -v 992
9 checknbshapes res1 -vertex 16 -edge 24 -wire 12 -face 12 -shell 2 -solid 1
10 CheckIsFeatureRemoved gap {v e f}
11
12
13 # remove hole
14 explode s
15 removefeatures res2 s s_2
16 checkshape res2
17 checkprops res2 -s 608 -v 992
18 checknbshapes res2 -vertex 16 -edge 24 -wire 10 -face 10 -shell 1 -solid 1
19 CheckIsFeatureRemoved s_2 {v e f}
20
21
22 # remove both gap and hole
23 removefeatures result s gap s_2
24 checkshape result
25 checkprops result -s 600 -v 1000
26 checknbshapes result -vertex 8 -edge 12 -wire 6 -face 6 -shell 1 -solid 1
27 CheckIsFeatureRemoved gap {v e f}
28 CheckIsFeatureRemoved s_2 {v e f}
29