1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
puts "============"
puts "OCC25354"
puts "============"
puts ""
#######################################################################
# Intersection operation
#######################################################################
#Case 49
box b 100 100 100
explode b f
set aLF {}
set N 10
for {set i 1} {$i < $N} {incr i} {
tcopy b_1 f1_${i}
ttranslate f1_${i} [expr $i * 10] 0. 0.
lappend aLF f1_${i}
}
for {set i 1} {$i < $N} {incr i} {
tcopy b_3 f3_${i}
ttranslate f3_${i} 0. [expr $i * 10] 0.
lappend aLF f3_${i}
}
for {set i 1} {$i < $N} {incr i} {
tcopy b_5 f5_${i}
ttranslate f5_${i} 0. 0. [expr $i * 10]
lappend aLF f5_${i}
}
#
set N 11
for {set i 1} {$i < $N} {incr i} {
psphere s_${i} [expr $i * 5]
ttranslate s_${i} 50 50 50
lappend aLF s_${i}
}
eval compound $aLF q
bclearobjects
bcleartools
baddcompound q
bfillds -t
bbop result 4 -t
set nb_v_good 2781
set nb_e_good 7332
set nb_w_good 0
set nb_f_good 0
set nb_sh_good 0
set nb_sol_good 0
set nb_compsol_good 0
set nb_compound_good 1
set nb_shape_good 10114
set 2dviewer 1
|