POV-Ray : Newsgroups : povray.object-collection : RoundEdge 1.3.1: elimination of torus artifact : Re: RoundEdge 1.3.1: elimination of torus artifact Server Time
8 Dec 2021 08:36:20 EST (-0500)
  Re: RoundEdge 1.3.1: elimination of torus artifact  
From: clipka
Date: 25 Jan 2016 14:25:14
Message: <56a6769a$1@news.povray.org>
Am 25.01.2016 um 19:15 schrieb Cousin Ricky:

> I almost immediately realized why my torus-cylinder merges showed this artifact,
> which is why I never reported this as a bug.  But bug or not, it is annoying, so
> it is fixed in RoundEdge 1.3.1.

... and it is also fixed (kind of, that is) in POV-Ray 3.7.1 ;)

You may want to change your RE__torus macro as follows:


#macro RE__torus (RMajor, rMinor, Use_merge)
  #if (RMajor * 2 < rMinor & Use_merge)
    #if (RoundEdge_Inc_Temp >= 3.7.1)
      torus { RMajor, rMinor merge }
    #else
      merge
      { difference
        { torus { RMajor, rMinor }
          sphere { 0, re_R }
        }
        sphere { 0, (re_R + rMinor) / 2 }
      }
    #end
  #else
    torus { RMajor, rMinor }
  #end
#end


Specifying the "merge" keyword after the major & minor radii of a torus
will cause interior surfaces of a spindle torus to be suppressed.

The "difference", "intersection" and "union" keywords also work there as
you might expect (though "union" is only included for completeness, as
it's the default anyway).


Post a reply to this message

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