POV-Ray : Newsgroups : povray.advanced-users : Vector components to function in isosurface : Re: Vector components to function in isosurface Server Time
28 Jul 2024 20:32:42 EDT (-0400)
  Re: Vector components to function in isosurface  
From: ABX
Date: 28 Jan 2004 09:55:41
Message: <04jf10p2q3s1puuun2c6u12u79unebdec1@4ax.com>
On Wed, 28 Jan 2004 16:39:22 +0200, Mikael Pohjola <emp### [at] cchutfi> wrote:
> I tried to use a component from a vector and pass it to a function in an 
> isosurface, and the parser returned an error. Se minimal scene below. The 
> parser seems to confuse the notations k.u (component of a vector) and x 
> (variable for the isosurface). Is this a "feature" or a bug? Or have I 
> misunderstood something?

Feature. Functions syntax has separated syntax description in manual.

> isosurface {
> 	function {y-Function(k.v*x, k.u*z)}
> }

You have to workaround it with additional float variables.

  function {
    #local kv = k.v;
    #local ku = k.u;
    y-Function(kv*x, ku*z)
  }

ABX


Post a reply to this message

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