POV-Ray : Newsgroups : povray.binaries.images : Problem with f_rounded_box function : Re: Problem with f_rounded_box function Server Time
17 May 2024 07:40:53 EDT (-0400)
  Re: Problem with f_rounded_box function  
From: Sebastian H 
Date: 9 Mar 2006 09:04:12
Message: <441035dc$1@news.povray.org>
Sebastian H. wrote:

> problem/bug?

I dug a bit in the source code and found that a
change in fnintern.cpp fixes the problem.
In the f_rounded_box function there is an offset
of 1e-6 subtracted from the actual result.

return (... - 1e-6);

With an increased offset magnitude of 1e-3
the problem disappears and the isosurface looks correct.
Why this offset is there is beyond me but removing it
slows down the isosurface rendering a lot.

Sebastian


Post a reply to this message

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