|
|
platform: POV35b6 on PII233 128 MB with NT4 SP6
second branch of my previous thread is not connected with first one.
Now I found below line/scene is properly parsed:
#local A=array;
but documentation says it needs [INT] after array keyword
ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35
Post a reply to this message
|
|
|
|
> platform: POV35b6 on PII233 128 MB with NT4 SP6
>
> second branch of my previous thread is not connected with first one.
> Now I found below line/scene is properly parsed:
>
> #local A=array;
>
> but documentation says it needs [INT] after array keyword
Yep, that's a degenerate case. Looks easy enough to fix though. I
would suggest not trying to use the resulting array, since it has a
negative dimension and a zero size.
--
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbf 1}hollow interior{media{emission 3-T}}}#end
Z(-x-x.2x)camera{location z*-10rotate x*90normal{bumps.02scale.05}}
Post a reply to this message
|
|