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 11:24:41 EDT (-0400)
  Re: scale by 0 (was Re: Disc which is not flat)  
From: Ron Parker
Date: 3 Dec 2001 10:28:21
Message: <slrna0n6gm.8ka.ron.parker@fwi.com>
On Mon, 3 Dec 2001 10:13:54 -0500, Trevor Quayle wrote:
> I think it makes sense the way it works at present.
> But if people want to scale  quickly in one direction without the warnings
> why not use a macro?
> 
> #macro ScaleIt (s)
>   #local s=s*<1,1,1>
>   scale <#if (s.x=0) 0 #else s.x #end,
>          #if (s.y=0) 0 #else s.y #end,
>          #if (s.z=0) 0 #else s.z #end>

Shirley some of those 0's should be 1's.

-- 
plane{-z,-3normal{crackle scale.2#local a=5;#while(a)warp{repeat x flip x}rotate
z*60#local a=a-1;#end translate-9*x}pigment{rgb 1}}light_source{-9red 1rotate 60
*z}light_source{-9rgb y rotate-z*60}light_source{9-z*18rgb z}text{ttf"arial.ttf"
"RP".01,0translate-<.6,.4,.02>pigment{bozo}}light_source{-z*3rgb-.2}//Ron Parker


Post a reply to this message

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