POV-Ray : Newsgroups : povray.bugreports : isosurface & function val() : Re: isosurface & function val() Server Time
24 Apr 2024 16:33:59 EDT (-0400)
  Re: isosurface & function val()  
From: James Holsenback
Date: 8 Jul 2014 11:07:48
Message: <53bc0944@news.povray.org>
On 07/08/2014 10:50 AM, deep125 wrote:
>> Splines have a function-like interface, so IIRC they are fully supported
>> in functions.
>
> Code:
> ----------
>
> #declare MySpline=spline
> {
>      linear_spline
>      1 , <0,0,0>
>      2 , <2,2,2>
>
> }
>
> isosurface {
>        function{
>          MySpline(1).x
>        }
>      contained_by { box { -2, 2 } }
>    }
> -------------------
>
> Error
>
> Parse Error: Expected 'operand', spline identifier found instead
>
> How to attach a spline?
>
>

you have not properly defined MySpline as a function ....

http://wiki.povray.org/content/Reference:Function#Functions_and_Macros


Post a reply to this message

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