POV-Ray : Newsgroups : povray.general : Disc which is not flat : Re: scale by 0 (was Re: Disc which is not flat) Server Time
7 Aug 2024 09:21:43 EDT (-0400)
  Re: scale by 0 (was Re: Disc which is not flat)  
From: TinCanMan
Date: 3 Dec 2001 17:22:49
Message: <3c0bfb39$1@news.povray.org>
"Jaime Vives Piqueres" <jai### [at] ignoranciaorg> wrote in message
news:3C0### [at] ignoranciaorg...
> > Yes, but I was aiming for a single macro to use in place of scale.
>
> Hmmm... perhaps...
>
> #macro Scale(Amnt)
>     scale Amnt+<(Amnt.x=0?1:0),(Amnt.y=0?1:0),(Amnt.z=0?1:0)>
> #end
>
> then for example use "Scale(3*y)" instead "scale 3*y".
>
To risk flogging this thing to death, the problem here was that if you pass
a float as opposed to a vector you get an error so you need to turn Amnt
into an equivilant vector first.

-tgq


Post a reply to this message

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