0030760: Modeling Algorithms - Intersection fails in Occt 7.3.0
[occt.git] / tests / bugs / modalg_7 / bug29973_2
CommitLineData
3dc58095 1puts "========"
2puts "OCC29973: Modeling Algorithms - access violation within BRepAlgoAPI_Cut on empty input shape"
3puts "========"
4puts ""
5
6
7box b1 10 10 10
8box b2 5 5 5 10 10 10
9compound c
10
11bclearobjects
12bcleartools
13baddobjects b1 b2
14baddtools c
15bfillds
16bbop r_0 0
17bbop r_1 1
18bbop r_2 2
19bbop r_3 3
20bbop r_4 4
21
22checkshape r_0
23checknbshapes r_0 -shape 1
24checkprops r_0 -s empty -v empty
25
26checkshape r_1
27checknbshapes r_1 -wire 12 -face 12 -solid 1 -shell 1
28checkprops r_1 -s 1050 -v 1875
29
30checkshape r_2
31checknbshapes r_2 -wire 18 -face 18 -solid 3 -shell 3
32checkprops r_2 -s 1350 -v 1875
33
34checkshape r_3
35checknbshapes r_3 -shape 1
36checkprops r_3 -s empty -v empty
37
38checkshape r_4
39checknbshapes r_4 -vertex 6 -edge 6
40checkprops r_4 -l 30
41
42# reverse the arguments
43
44bclearobjects
45bcleartools
46baddobjects c
47baddtools b1 b2
48bfillds
49bbop r1_0 0
50bbop r1_1 1
51bbop r1_2 2
52bbop r1_3 3
53bbop r1_4 4
54
55checkshape r1_0
56checknbshapes r1_0 -ref [nbshapes r_0]
57checkprops r1_0 -equal r_0
58
59checkshape r1_1
60checknbshapes r1_1 -ref [nbshapes r_1]
61checkprops r1_1 -equal r_1
62
63checkshape r1_2
64checknbshapes r1_2 -ref [nbshapes r_3]
65checkprops r1_2 -equal r_3
66
67checkshape r1_3
68checknbshapes r1_3 -ref [nbshapes r_2]
69checkprops r1_3 -equal r_2
70
71checkshape r1_4
72checknbshapes r1_4 -ref [nbshapes r_4]
73checkprops r1_4 -equal r_4