1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/modalg_5/bug25354_49
2014-11-21 16:12:48 +03:00

61 lines
1.1 KiB
Plaintext

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