COMPOUND for boolean operations ... is it useful ???????

Hello

I am trying to use "compound" for boolean operations,
hoping that it would speed up.

I created a box and rotated it 150 times about the origin.
Made a compound out of it.
Then tried FUSE with a solid cylinder.
The operation fails.
It works if I fuse 50 copies compound with the cylinder.

Is it advisable to use COMPOUND for such operations ?
The TEST harness script is attached below ( RUN IT IN "FRONT" view")
best regards

- Prasad

==================================================
#
# 17/1/2005
# NOTE : Run this script in FRONT view
#
box b 0 0 0 100 10 5
#tcopy b b1

# if the loop is executed for 50 times, the FUSE operation
# is successful on the compound and the solid cylinder
#
for {set i 1} {$i tcopy b b$i
#ttranslate b$i ($i)*10.0 0.0 0.0
trotate b$i 0.0 0.0 0.0 0.0 1.0 0.0 $i*2.4
}

compound all
for {set j 1} {$j add b$j all
#whatis $j$k
}
checkshape all

#mycyl c 0 -5 0 0 15 0 90
pcylinder c 90 50
trotate c 0 0 0 1.0 0 0 90
ttranslate c 0 25 0

fuse result c all
=================================================================

Rob Bachrach's picture

I just ran your test script in OCC 5.2 on Windows 2000 and it
worked fine. I have used compounds for fuse without problem.
Note, however, that the items in the compound are not fused
together. They are kept separate and fused with the other
shape. Therefore, the final shape may have overlapping areas
(as does your example).