POV-Ray : Newsgroups : povray.general : Bug in Bezier patches ? : Re: Bug in Bezier patches ? Server Time
13 Aug 2024 15:26:46 EDT (-0400)
  Re: Bug in Bezier patches ?  
From: Thomas Willhalm
Date: 12 Aug 1998 12:15:19
Message: <qqm1zqmxmd5.fsf@horn.fmi.uni-konstanz.de>
par### [at] my-dejanewscom (Ron Parker) writes:

> On 12 Aug 1998 14:49:14 +0200, Thomas Willhalm
>         <Tho### [at] uni-konstanzde> wrote:
> >
> >
> >If you replace "type 1" by "type 0". The patch will look quite different.
> >In my opinion the surface normal is not correct. Can some one confirm that
> >this is a bug and check whether it is corrected in version 3.1b? (Since
> >I use Unix I can not do it.) I will then email a bug report to Chris.
> 
> I can confirm that the bug still exists in the win32 build of beta 5.  If you
> have the 3.0x sources, here's the fix:
> 
> In the file bezier.c in the function bezier_subdivider, lines 1526, 1538,
> and 1545-1546 look like this:
> 
> 1526: vt = (v1 - v0) / 2.0;
> ...
> 1538: ut = (u1 - u0) / 2.0;
> ...
> 1545: ut = (u1 - u0) / 2.0;
> 1546: vt = (v1 - v0) / 2.0;
> 
> These lines don't match the similar lines in bezier_tree_builder, where all
> of the minuses are replaced with plusses.  Indeed, replacing the minus signs
> in the above four lines with plus signs fixes the problem.

Thank you very much! This was a fast and very helpful response! 
 
> I'll let you go ahead and send the bug report to Chris.  If you'd like to
> quote this post, please feel free.

This is what I'll do.

Thanks again

Thomas

-- 
Tho### [at] uni-konstanzde
http://www.fmi.uni-konstanz.de/~willhalm/
Tschieses lavs ju


Post a reply to this message

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