POV-Ray : Newsgroups : povray.beta-test : Round_Box #macro (in shapes.inc) and negative values : Round_Box #macro (in shapes.inc) and negative values Server Time
29 Jul 2024 14:18:36 EDT (-0400)
  Round_Box #macro (in shapes.inc) and negative values  
From: Fabien Mosen
Date: 21 Apr 2002 05:35:29
Message: <3CC2878E.9040708@skynet.be>
The scene below shows that the Round_Box_.. #macro in 'shapes.inc'
doesn't work well with negative values.  The elements of
the 'negative one' are misplaced.  I didn't take time yet to
see where's the problem, but I can say that the 'old' RoundedBox
#macro by John VanSickle works as expected.

Fabien.

// ================================
#include "colors.inc"
#include "shapes.inc"

camera {location <15,50,-20> look_at <0,8,0> angle 30}

// bad
  object {
          Round_Box_Union (<-5,0,0>,<-10,15,-5>,.4)
          pigment {Red}
          }

// good
  object {
          Round_Box_Union (<5,0,0>,<10,15,5>,.4)
          pigment {Yellow}
          }

light_source {<1200,1600,1400> White*1}
light_source {<-1200,1600,-1400> White*1 shadowless}


Post a reply to this message

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