0032140: Modeling Algorithms - unify same domain calls crossed for opposite vectors
[occt.git] / tests / boolean / removefeatures / B8
1 restore [locate_data_file bug29481_ex1.brep] s
2 explode s f
3
4 # removal of the hole in the shape
5
6 removefeatures result s s_14 s_20
7 checkshape result
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}
12
13 # get history of the operation
14 savehistory rf_hist
15
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
20
21 modified m16 rf_hist s_16
22 checkprops m16 -s 194.429
23 checknbshapes m16 -vertex 10 -edge 10 -wire 1 -face 1
24
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"
28 }
29
30 if {![regexp "No shapes were generated" [generated g16 rf_hist s_16]]} {
31   puts "Error: incorrect feature removal"
32 }
33
34 checkview -display result -2d -path ${imagedir}/${test_image}.png