|
|
In article <n8lo8u0nlh6h0fc8vnj61h6eh3bgfm1ekt@4ax.com>,
Peter Popov <pet### [at] vipbg> wrote:
> Better not generate the boxes which you don't need that cut them out
> completely. Inside the #while loop, only generate the box #if it fits
> some criteria. For example,
Even better:
If any part of the box will be cut, don't generate that box. Then, go
through again, and make a union of the boxes that will be cut (minus the
ones that will be removed completely)...difference from that.
Alternatively, loop through once, if the block is partially cut use a
difference *for that block*. This uses many differences of single
objects instead of one difference of many objects, only requires one
loop and simpler code, and is probably faster.
--
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/
Post a reply to this message
|
|