POV-Ray : Newsgroups : povray.advanced-users : Finer points of function syntax : Finer points of function syntax Server Time
27 Feb 2024 16:01:34 EST (-0500)
  Finer points of function syntax  
From: Bald Eagle
Date: 23 Jul 2019 16:10:01
Message: <web.5d376884236c0b6e4eec112d0@news.povray.org>
1.   is there a way to define a tuple-style argument to act as the x,y,z for the
function parameters?

Something like #declare _p = ???tuple-thing??? ;

#declare Result = FunctionQ (_p)

2.     With #declare F = function {spline ...........}
I have no problems using #declare I = function {F(FunctionQ(x,y,z)).x}
but when I try to use #declare I = function {F(FunctionQ(X,Y,Z)).x}
I get:
Parse Error: Expected 'parameter identifier or floating-point constant
identifier', } found instead

3. for spline functions, is there a syntax (or a work-around) that allows a
function to be used in the vector definition?

#declare FSpline = function {
 spline {
    0, <0,   0,   FunctionW (x,y,z)>


Post a reply to this message

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