0031587: Modeling Data - add BRepTools::RemoveInternals() removing internal sub-shape...
[occt.git] / tests / bugs / moddata_3 / bug31587_3
CommitLineData
09543c2d 1puts "================"
2puts "0031587: Modeling Data - Remove internal sub-shapes from the shape"
3puts "================"
4puts ""
5
6box b 10 10 10
7box b1 2 2 -1 3 2 2
8explode b1 f
9
10bclearobjects
11bcleartools
12baddobjects b
13baddtools b1_1 b1_2
14bfillds
15bsplit r
16
17removeinternals r
18
19checkshape r
20checknbshapes r -vertex 8 -edge 12 -wire 6 -face 6 -shell 1 -solid 1
21
22bbuild r
23bbuild r1
24removeinternals r1 0
25
26checkshape r1
27checknbshapes r1 -ref [nbshapes r]
28
29removeinternals r1 1
30checkshape r1
31checknbshapes r1 -vertex 20 -edge 26 -wire 10 -face 10 -shell 1 -solid 1
32
33explode r1 so
34checknbshapes r1_1 -vertex 8 -edge 12 -wire 6 -face 6 -shell 1 -solid 1