0029604: Uniform mechanism providing History of shape's modifications for OCCT algori...
[occt.git] / tests / boolean / removefeatures / G1
1 # prepare model
2 polyline p 0 0 0 10 0 0 10 0 5 5 0 5 0 0 0
3 mkplane f p
4 prism s f 0 5 0
5 pcylinder c 2 3
6 ttranslate c 7.5 2.5 2
7
8 bclearobjects
9 bcleartools
10 baddobjects s
11 baddtools c
12 bfillds
13 bbop model 2
14
15 savehistory bop_hist
16 # find face to remove - top face of the model
17 explode s f
18 modified feature bop_hist s_3
19
20 # remove features
21 removefeatures result model feature
22
23 checkshape result
24 checkprops result -s 334.621 -v 180.885 -deps 1.e-7
25 checknbshapes result -vertex 8 -edge 12 -wire 8 -face 7 -shell 1 -solid 1 -t
26 CheckIsFeatureRemoved feature {e f}
27
28 checkview -display result -2d -path ${imagedir}/${test_image}.png