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