POV-Ray : Newsgroups : povray.binaries.images : An artifact when rendering torus(negative major_r) : Re: An artifact when rendering torus(negative major_r) Server Time
17 May 2024 19:12:29 EDT (-0400)
  Re: An artifact when rendering torus(negative major_r)  
From: Stephen
Date: 10 Apr 2015 04:35:48
Message: <55278b64$1@news.povray.org>
On 09/04/2015 20:29, clipka wrote:
> Am 09.04.2015 um 21:01 schrieb clipka:
>> Am 09.04.2015 um 18:17 schrieb clipka:
>>
>>> Yes, this certainly is a bug. I haven't looked at the code yet, but
>>> judging from the effect I would assume that the surface normal at a
>>> given intersection point is computed as the (normalized) vector from the
>>> closest point on the "centroid circle" to the surface point; obviously
>>> this breaks down for the inner spindle of a spindle torus.
>>
>> And that's exactly what's happening.
>>
>> I've just submitted a fix to GitHub
>>
(https://github.com/POV-Ray/povray/commit/c3551f249c89ffc817a4deb2acea0412a0b9913f).
>>
>
> BTW, the intention of the new implementation is that a spindle torus
> (one that intersects itself) behaves like a union, i.e.:
>


Nice one Clipka. :-D

I had better leave the compiling to someone who can do it.


-- 

Regards
     Stephen


Post a reply to this message

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