POV-Ray : Newsgroups : povray.general : A painful lesson regarding function arguments. u=x, v=y. : Re: A painful lesson regarding function arguments. u=3D3D3Dx, v=3D3D3Dy. Server Time
26 Apr 2024 14:55:08 EDT (-0400)
  Re: A painful lesson regarding function arguments. u=3D3D3Dx, v=3D3D3Dy.  
From: Cousin Ricky
Date: 30 Sep 2021 10:10:00
Message: <web.6155c48045d6b61160e0cc3d949c357d@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:
>
> which highlights another kind of trap! Namely, using z,y,z,u or v
> internal to a function body where you've not specified them in the
> argument list. Looks like those all default to 0 and the variables are
> available within the function body without complaint from the parser
> whether they are getting set by some explicit (or defaulted) argument
> passing or not. The 'not' case being the exposure.

I just discovered this last night.  See Mysterious function argument in
p.documentation.inbuilt.


Post a reply to this message

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