POV-Ray : Newsgroups : povray.general : A Question regarding output : Re: A Question regarding output Server Time
29 Jul 2024 16:23:17 EDT (-0400)
  Re: A Question regarding output  
From: Jim Holsenback
Date: 14 Jan 2011 04:18:20
Message: <4d3014dc$1@news.povray.org>
On 01/14/2011 03:36 AM, Anthony D. Baye wrote:
> Often I find it more convenient to scale by a single vector component (e.g.
> scale 4.0*x)
> 
> the problem is that when I go to render, I get massive numbers of parse
> warnings, especially if I do this in a loop.
> 
> Is it really necessary to warn the user that scale assumes a value of 1 for any
> undefined component?
> 
> Regards,
> 
> A.D.B.
> 
> 
you could turn off the warnings stream:
http://wiki.povray.org/content/Documentation:Reference_Section_1.3#Text_Streams

or a macro:


#macro SFx (SF)
  #local SF = <SF,0,0> + <0,1,1>;
  scale SF
#end

box {<-1,-1,-1>, <1,1,1>
  pigment {rgb <1,0,0>}
  SFx (4)
  }


Post a reply to this message

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