|
|
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
Thies Heidecke
the macro :
#macro Icosaeder(C,S,CR,R,L) // Recursive Macro
#if(L=0)
S*(1 - ( ( (x-C.x)^2 + (y-C.y)^2 + (z-C.z)^2 ) / (CR*R)^2 )^2 + //
<---here's the error
#else
#local New_L = L-1;
#local New_R = R*nsr;
Icosaeder(C+ P1*R*ir,S,CR,New_R,New_L)
Icosaeder(C+ P2*R*ir,S,CR,New_R,New_L)
Icosaeder(C+ P3*R*ir,S,CR,New_R,New_L)
Icosaeder(C+ P4*R*ir,S,CR,New_R,New_L)
Icosaeder(C+ P5*R*ir,S,CR,New_R,New_L)
Icosaeder(C+ P6*R*ir,S,CR,New_R,New_L)
Icosaeder(C+ P7*R*ir,S,CR,New_R,New_L)
Icosaeder(C+ P8*R*ir,S,CR,New_R,New_L)
Icosaeder(C+ P9*R*ir,S,CR,New_R,New_L)
Icosaeder(C+P10*R*ir,S,CR,New_R,New_L)
Icosaeder(C+P11*R*ir,S,CR,New_R,New_L)
Icosaeder(C+P12*R*ir,S,CR,New_R,New_L)
#end
#end
Post a reply to this message
|
|