POV-Ray : Newsgroups : povray.general : "scale" usagage observation : "scale" usagage observation Server Time
4 Nov 2024 21:23:56 EST (-0500)
  "scale" usagage observation  
From: Marc Champagne
Date: 10 Sep 2003 22:26:30
Message: <Xns93F2E3DCD64E5POVMIKA@204.213.191.226>
Hi folks!

I've seen this kind of syntax here and there:

    	scale x + z + y*0.03

I don't like it as it is not clear what it does without having to analyse
it for a moment 


From what I gathered and from normal operator precedence this is the same
as:
    	scale x*1 + z*1 + y*0.03
    	    	or
    	scale <1,0.03,1>

I figured the syntax not so clear syntax is to avoid the "cannot scale by
0 warning" when one uses this syntax: 

    	scale y*0.03

I'm not saying it's good or bad, I just don't like when I have to ponder
on such a simple statement in order to figure out what it's doing. 

Would it not be wise for the scale statement to assume 1 instead of 0 for
those vectors that are not specified. 

I may not realise what other impact this may have on the system as a
whole. 

Just thought I would mention it.

Thanks

-- 
Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA


Post a reply to this message

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