POV-Ray : Newsgroups : povray.newusers : forcing POVray to ignore degenerate cylinders : Re: forcing POVray to ignore degenerate cylinders Server Time
29 Jul 2024 16:20:33 EDT (-0400)
  Re: forcing POVray to ignore degenerate cylinders  
From: Sebastian H 
Date: 15 Feb 2006 10:57:57
Message: <43f34f85$1@news.povray.org>
Trevor G Quayle wrote:
> 
> POV doesn't need to think to 'drop' zero volume spheres and boxes.  They
> have no diminesional surface for rays to intersect so they can be left in
> the scene as is without causing parsing problems, the individual rays will
> pass by them unhindered without POV having to alter the scene.  This is not
> the case for cylinders, POV would need to be able to think to see that a
> cylinder is degenerate and remove it because of the problem with them as
> its been explained.   This additional thinking by POV may add to the
> parsing overhead.
> 

This sounds as if the POV parser is in bad need for a
garbage filter. Imagine a typo in a macro produces
boxes with no volume. Actually I tried it and the
only message I got was that there was no pigment given.
With given pigment I could blow up parsing time at will.

#declare c=0;
#while(c<100000)
   box{<0,0,0><0,0,0> pigment {rgb <1,0,0>}}
   #declare c=c+1;
#end

even replies:
Slab Building Error: Out of memory.  Cannot allocate -124288 bytes for 
temporary tree entry.

It shouldn't be too hard to check a box size or a
cylinder length while parsing. Probably it's that
nobody had enough spare time to implement this.

Sebastian


Post a reply to this message

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