0028802: The tolerance reached by approximator is used in creation of an edge, it...
[occt.git] / tests / bugs / modalg_6 / bug26565_7
1 puts "============"
2 puts "OCC26565"
3 puts "============"
4 puts ""
5 ###############################
6 ## Compsolid after cut becomes compound of solids
7 ###############################
8
9 box b1 10 10 10
10 box b2 10 0 0 10 5 5
11 box b3 10 5 0 10 5 5
12 box b4 10 0 5 10 10 5
13
14 bclearobjects
15 bcleartools
16 baddobjects b1 b2 b3 b4
17
18 bfillds
19 bbuild r
20
21 explode r so
22 shape b1 CS
23 add r_1 b1
24 add r_2 b1
25 add r_3 b1
26 add r_4 b1
27
28 box b2 5 0 2 10 10 10
29 box b3 -5 2 3 30 6 4
30 bclearobjects
31 bcleartools
32 baddobjects b1 b2
33 baddtools b3
34
35 bfillds
36 bbop r 2
37
38 explode r
39
40 # should be compsolid and solid
41
42 set ShapeType "COMPSOLID"
43 if { [regexp $ShapeType [whatis r_1]] == 1  } {
44    puts "OK : There is $ShapeType; Compsolid is good"
45 } else {
46    puts "Error : There is not $ShapeType; Compsolid is bad"
47 }
48
49 set ShapeType "SOLID"
50 if { [regexp $ShapeType [whatis r_2]] == 1  } {
51    puts "OK : There is $ShapeType; Compsolid is good"
52 } else {
53    puts "Error : There is not $ShapeType; Compsolid is bad"
54 }