POV-Ray : Newsgroups : povray.newusers : Hole in the wall : Re: Hole in the wall Server Time
5 Nov 2024 05:24:26 EST (-0500)
  Re: Hole in the wall  
From: Christopher James Huff
Date: 11 Mar 2002 10:35:43
Message: <chrishuff-493389.10353911032002@netplex.aussie.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.