0029484: Avoid inheritance of the BRepAlgoAPI_Check from BRepBuilderAPI_MakeShape
[occt.git] / tests / bugs / modalg_7 / bug29333_1
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 faces
10plane p 0 0 0 0 0 1
11mkface f1 p -10 10 -10 10
12
13copy f1 f2
14ttranslate f2 20 0 0
15
16# fuse these faces
17bfuse s f1 f2
18
19# split one of these faces
20explode s f
21
22line l 0 0 0 1 0 0
23mkedge e l
24bclearobjects
25bcleartools
26baddobjects s_1
27baddtools e
28bfillds
29bsplit s1_sp
30
31
32# fuse again
33bclearobjects
34bcleartools
35baddobjects s1_sp
36baddtools s_2
37bfillds
38bbuild result
39
40checkshape result
41checkprops result -s 800
42checknbshapes result -vertex 8 -edge 10 -wire 3 -face 3
43
44
45# check that non of the shapes from s1_sp is modified
46compound result s1_sp c
47checknbshapes c -vertex 8 -edge 10 -wire 3 -face 3
48
49
50# fuse with different order
51bclearobjects
52bcleartools
53baddobjects s_2
54baddtools s1_sp
55bfillds
56bbuild result
57
58checkshape result
59checkprops result -s 800
60checknbshapes result -vertex 8 -edge 10 -wire 3 -face 3
61
62
63# check that non of the shapes from s1_sp is modified
64compound result s1_sp c
65checknbshapes c -vertex 8 -edge 10 -wire 3 -face 3