POV-Ray : Newsgroups : povray.general : "scale" usagage observation : Re: "scale" usagage observation Server Time
4 Nov 2024 21:22:59 EST (-0500)
  Re: "scale" usagage observation  
From: Francois Labreque
Date: 11 Sep 2003 20:32:49
Message: <3f611431$1@news.povray.org>
Program ended abnormally on 11/09/2003 18:02, Due to a catastrophic Marc
Champagne error:

> 
> What frustrates me the most are sequences that are not so obvious without
> mentaly breaking it down, such as 
>     	
>     	scale x * 2 + y + 15 * z
> 
> I still believe for this case that
> 
>     	scale (x * 2) + (y * 1) + (15 * z)
> 
> or even better
> 
>     	scale <2,1,15>
> 
> would be faster to digest by humans (more readable)
> 

Absolutely.  I do not think there are lots of people who will write:

      scale x*2 + y + 15*z

as it does nothing more that waste characters and slow down the parser for a few 
cycles.  Statements like this will only show up (in my pov scenes, at least) in 
the development phase when I'm usually not thinking straight, or inside my .sig.

I have had to use complex statements to generate scale, translate or rotate 
vectors, but I usually try to make it easier to read and understand 6 months 
down the road.

-- 
/*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
/*    flabreque    */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
/*        @        */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
/*   videotron.ca  */}camera{orthographic location<6,1.25,-6>look_at a }


Post a reply to this message

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