0029380: Delete "checknbshapes" from bugs/modalg_6/bug27341* test cases
[occt.git] / tests / bugs / modalg_6 / bug26565_8
1 puts "============"
2 puts "OCC26565"
3 puts "============"
4 puts ""
5 ###############################
6 ## Compsolid after cut becomes compound of solids
7 ###############################
8
9 box b 10 10 10
10 explode b f
11
12 shape profile Sh
13 add b_1 profile
14 add b_3 profile
15
16 polyline spine 0 0 0 10 10 0
17
18 pipe sh spine profile
19
20 whatis sh
21 plane pl 10 10 0 -1 -1 0 1 0 0
22 mkface f pl
23
24 shape sl So
25 shape sl_sh Sh
26 add f sl_sh
27 add sl_sh sl
28
29 bcut res sh sl
30
31 explode res
32
33 # should be compsolid
34
35 set ShapeType "COMPSOLID"
36 if { [regexp $ShapeType [whatis res_1]] == 1  } {
37    puts "OK : There is $ShapeType; Compsolid is good"
38 } else {
39    puts "Error : There is not $ShapeType; Compsolid is bad"
40 }