POV-Ray : Newsgroups : povray.general : Disc which is not flat : scale by 0 (was Re: Disc which is not flat) Server Time
7 Aug 2024 11:20:46 EDT (-0400)
  scale by 0 (was Re: Disc which is not flat)  
From: Trevor Quayle
Date: 3 Dec 2001 10:15:13
Message: <3c0b9701@news.povray.org>
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>
#end


Instead of using 'scale x*5' and getting a warning or having to type 'scale
<5,1,1>' you just type
'ScaleIt(x*5)'.

I don't really see the point though, I have gotten in the habit of using
'scale <5,1,1>' for continuity sake.

-tgq


Post a reply to this message

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