POV-Ray : Newsgroups : povray.beta-test : Parser Statistics anomaly : Re: Parser Statistics anomaly Server Time
16 May 2024 19:25:14 EDT (-0400)
  Re: Parser Statistics anomaly  
From: Le Forgeron
Date: 6 Dec 2012 13:16:00
Message: <50c0e0e0$1@news.povray.org>
Le 06/12/2012 17:39, James Holsenback nous fit lire :
> 
> play around with the scaling and see when it starts to call it finite ;-)

I don't play... I cheat & I looked at the code.
In parse.cpp, BOUNDS_VOLUME is an inline function from bbox.h which
compute the volume of the bounding box (simple product of height, width
& depth).
INFINITE_VOLUME is the limit to set the infinite flag.
The value of INFINITE_VOLUME is BOUND_HUGE. (parse.cpp)
The value of BOUND_HUGE is 2.0e+10 (configbackend.h)

So, the sphere is to become finite when the box (true cube) is to have a
volume of 2.0e+10 or less. That's for a side of 2714.4176 (cubic root of
2.0e+10), so for a radius of 1357.2088


Post a reply to this message

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