POV-Ray : Newsgroups : povray.bugreports : Epsilon in wrong direction in shapes3.inc : Epsilon in wrong direction in shapes3.inc Server Time
19 Apr 2024 06:06:23 EDT (-0400)
  Epsilon in wrong direction in shapes3.inc  
From: Ard
Date: 2 Oct 2014 05:10:01
Message: <web.542d149f18cce87bb6820d7a0@news.povray.org>
If I'm reading it correctly, the Segment_of_* macros in shapes3.inc shave tiny
slices off the object as well as removing the pie-piece one expects.  They are
unnoticeably small, except maybe to us obsessives.

Here's a patch to Segment_of_CylinderRing():

--- shapes3.inc.orig    2014-10-02 21:53:08.933523600 +1300
+++ shapes3.inc 2014-10-02 21:53:06.189366100 +1300
@@ -174,11 +174,11 @@
   merge{
   #end // then use merge!

-   box { <-R_o+D,-D,0>,< R_o+D, H+D, R_o+D>
+   box { <-(R_o+D),-D,0>,< R_o+D, H+D, R_o+D>
          rotate<0,0,0>
        }// end of box

-   box { <-R_o+D,-D,-R_o+D>,< R_o+D, H+D,0>
+   box { <-(R_o+D),-D,-(R_o+D)>,< R_o+D, H+D,0>
          rotate<0,  Segment_Angle,0>
        }// end of box

It looks like other macros in shapes3 are affected similarly.

Great macros in there, by the way.


Post a reply to this message

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