POV-Ray : Newsgroups : povray.advanced-users : Parse error: float expected but vector or color expression found. : Re: Parse error: float expected but vector or color expression found. Server Time
28 Jul 2024 12:35:53 EDT (-0400)
  Re: Parse error: float expected but vector or color expression found.  
From: Leo80s
Date: 23 Jan 2006 07:10:01
Message: <web.43d4c6b8afb56a7072071f7b0@news.povray.org>
ok.. I've downloaded source code and I've seen that use a user-defined
function tu build an isosurface it's quite difficult...
I've seen that if I write

isosurface {
        function { rbf(x,y,z) }
        ...
}

x,y and z are not simple identifiers but are something like vectors...
In the source code (fnintern.cpp) I've seen that internal function povided
by povray has a sintax like this:

DBL f_torus(DBL *ptr, unsigned int) // 70
{
 PARAM_X = sqrt(PARAM_X * PARAM_X + PARAM_Z * PARAM_Z) - PARAM(0);
 return -PARAM(1) + sqrt(PARAM_X * PARAM_X + PARAM_Y * PARAM_Y);
}

how can I define a function (my rbf function in previous message..) in a way
like this to be able to use this function to build an isosurface???

sorry for my atrocious english, but It's very important to be able to do
this for my graduate thesis

Thanks
Leo


Post a reply to this message

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