|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |