0030760: Modeling Algorithms - Intersection fails in Occt 7.3.0
[occt.git] / tests / bugs / modalg_7 / bug29333_2
CommitLineData
81a55a69 1puts "========"
2puts "OCC29333"
3puts "========"
4puts ""
5#################################################
6# Boolean Operations - Prevent modification of the input shapes in case their sub-shapes have not been modified
7#################################################
8
9# create two touching boxes
10box b1 10 10 10
11box b2 10 0 0 10 10 10
12
13# make them share the common face
14mkvolume s b1 b2
15
16# split one of these solids
17explode s so
18
19plane p 0 0 5 0 0 1
20mkface f p
21bclearobjects
22bcleartools
23baddobjects s_1
24baddtools f
25bfillds
26bsplit s1_sp
27
28
29# fuse again
30bclearobjects
31bcleartools
32baddobjects s1_sp
33baddtools s_2
34bfillds
35bbuild result
36
37checkshape result
38checkprops result -s 1400 -v 2000
39checknbshapes result -vertex 16 -edge 28 -wire 16 -face 16 -shell 3 -solid 3
40
41
42# check that non of the shapes from s1_sp is modified
43compound result s1_sp c
44checknbshapes c -vertex 16 -edge 28 -wire 16 -face 16 -shell 3 -solid 3
45
46
47# fuse with different order
48bclearobjects
49bcleartools
50baddobjects s_2
51baddtools s1_sp
52bfillds
53bbuild result
54
55checkshape result
56checkprops result -s 1400 -v 2000
57checknbshapes result -vertex 16 -edge 28 -wire 16 -face 16 -shell 3 -solid 3
58
59
60# check that non of the shapes from s1_sp is modified
61compound result s1_sp c
62checknbshapes c -vertex 16 -edge 28 -wire 16 -face 16 -shell 3 -solid 3