|
![](/i/fill.gif) |
Wasn't it Christoph Hormann who wrote:
>
>
>Thies Heidecke wrote:
>>
>> Hi NG,
>>
>> i am working on a macro for creating Blobcomponents. I've already
>> successfully implemented this with a blob-object. But now i want to use an
>> isosurface, because of the freedom of adding additional functions. when i
>> try my new macro i get a parser-error stating a vectoridentifier where an
>> operand should be, but i used the .x (.y / .z) operator to extract a
>> float-value but povray doesn't seem to care... has anyone tips what i made
>> wrong? Thanks in advance
>
>Try declaring locals like:
>
> #local Cx = C.x;
>
>at the beginning of the macro.
Also, note that the line
S*(1 - ( ( (x-Cx)^2 + (y-Cy)^2 + (z-Cz)^2 ) / (CR*R)^2 )^2 + //
has seven "("s and only six ")"s. You either need to slip in a seventh
")" on that line somewhere or write a heck of a lot of them when you
return from your macro.
And remember that the expression returned by the macro has a spurious
"+" on the end, so you're going to have to call it something like
isosurface {
function{
Icosaeder(...)
0
}
...
Where the extra "0" is simply there to prevent the trailing "+" being
syntactically incorrect.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
![](/i/fill.gif) |