POV-Ray : Newsgroups : povray.beta-test : Isosurface problem : Re: Isosurface problem Server Time
30 Jul 2024 06:26:18 EDT (-0400)
  Re: Isosurface problem  
From: Trevor Quayle
Date: 21 Dec 2001 11:31:02
Message: <3c2363c6@news.povray.org>
> #declare Pig = function { pigment { wrinkles color_map { [0 rgb 1][1 rgb
> 0] } } }
> #declare Pq =
>   isosurface {
>     function { y + 0.22 + 0.05*Pig(10*x,10*y,10*z) }
>     threshold 0.5
>     bounded_by { box { <-0.9, 0, -0.9>, <0.9, 0.5, 0.9> } }
>     scale <1, 0.5, 1>
>     translate 0.1*y
>   }
>
> And the corresponding message error :
>
>   isosurface {
>     function { y + 0.22 + 0.05*Pig(10*x,10*y,10*z) } <----ERROR
> Parse Error: Expected '.', } found instead

from 6.7.11.15.1:

When using the identifier, you have to specify which component of the color
vector should be used. To do this, the dot notation is used:
Function(x,y,z).red


Post a reply to this message

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