File: bug25354_49

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (60 lines) | stat: -rw-r--r-- 1,080 bytes parent folder | download | duplicates (3)
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