|
|
i ve read that splines are still in developement but maybe this can help..
i get a parse error when using a spline in a macro
ex :
camera { location <0,2,-2> look_at 0 }
light_source { <-5,30,-10> 1 }
#declare MySpline =
spline {
cubic_spline
-.25, <0,0,-1>
0.00, <1,0,0>
0.25, <0,0,1>
0.50, <-1,0,0>
0.75, <0,0,-1>
1.00, <1,0,0>
1.25, <0,0,1>
}
#macro mymacro(apoint)
apoint
#end
sphere { 0,.1 translate mymacro(MySpline(.5)) pigment {color rgb 1}}
gives :
sphere { 0,.1 translate mymacro(MySpline( <----ERROR
Parse Error: Expected ')', ( found instead
however if i add parenthesis it works
sphere { 0,.1 translate mymacro((MySpline(.5))) pigment {color rgb 1}}
pov3.5b1 win2000 athlon 900MHz 256MB
M
Post a reply to this message
|
|