0026855: Draw commands to debug Boolean Operations Algorithm
[occt.git] / tests / bugs / modalg_5 / bug25232_9
1 puts "============"
2 puts "OCC25232"
3 puts "============"
4 puts ""
5 #########################################################################
6 # Functionality to create solids from set of shapes
7 #########################################################################
8
9 compound b1
10 compound b2
11 compound b3
12 set nbi 21
13 set nbj 21
14 set nbk 21
15 for {set i 0} {$i < $nbi} {incr i} {plane p 0 0 [expr $i-10] 0 0 1; mkface f_$i p -10 10 -10 10; add f_$i b1;}
16 for {set j 0} {$j < $nbj} {incr j} {plane p [expr $j-10] 0 0 1 0 0; mkface f_$j p -10 10 -10 10; add f_$j b2;}
17 for {set k 0} {$k < $nbk} {incr k} {plane p 0 [expr $k-10] 0 0 1 0; mkface f_$k p -10 10 -10 10; add f_$k b3;}
18 sphere s 0 0 0 10
19 mkface f s
20
21 mkvolume result b1 b2 b3 f
22 # 9832 solids created
23
24 set square 50513.3
25
26 checknbshapes result -vertex 11037 -edge 31880 -wire 30668 -face 30668 -shell 9832 -solid 9832 -compsolid 0 -compound 1 -shape 123918
27 set 2dviewer 1