[Radiance-general] arguments to function file constant

Stephen Wasilewski stephen at coolshadow.com
Tue Sep 5 18:22:09 PDT 2017


As I understand function files: lines with colons are defined once upon
loading the func file and lines with equal signs are calculated for every
intersecting ray.  Is there a way to pass an argument from my material
(A1,A2 etc.) to a constant?  if I try something like this:

darea : A3^2*PI;

I get this error:
rvu: internal - arg(n) called without a modifier context

but this:
darea = A3^2*PI;

runs fine.

Although perhaps my first question should be:  does this make a difference
in the calculation time?

Thanks,

Stephen Wasilewski
*LOISOS *+* UBBELOHDE*
- - - - - - - - - - - - - - - - - - - - - - - - - - -
1917 Clement Avenue  Building 10A
Alameda, CA  94501 USA
- - - - - - - - - - - - - - - - - - - - - - - - - - -
510 521 3800 VOICE
510 521 3820 FAX
- - - - - - - - - - - - - - - - - - - - - - - - - - -
www.coolshadow.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20170905/8ab931ce/attachment.html>


More information about the Radiance-general mailing list