POV-Ray : Newsgroups : povray.beta-test : Function parameter bug : Re: Function parameter bug Server Time
30 Jul 2024 14:22:23 EDT (-0400)
  Re: Function parameter bug  
From: JRG
Date: 26 Oct 2001 19:40:30
Message: <3bd9f46e@news.povray.org>
V does not represent your function, it's just a parameter. As it is now you
are telling povray to do:
#declare Myfunction (0.1) (0.1*2)
sphere {x, 0.1)
which isn't correct.

try something like this:

#declare Myfunction = function (V) {V*2}
sphere {x, Myfunction (0.1)}

--
Jonathan.


Post a reply to this message

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