|
![](/i/fill.gif) |
"Hugo" <hua### [at] post3 tele dk> wrote in message news:3c42a240@news.povray.org...
>
> > #declare Wrapobject = MySphereObject
> > file://finish{ambient 1}
> > Center_Trans(Wrapobject, x+y+z)}
>
> As far as I'm aware, you can't declare an object + finish like that.. Put an
> object { } wrapper around them.. Concerning the transformation error, I
> haven't got that line to work either, so I comment out Center_Trans.. The
> line is not necessary if your object is already at origin, which would be
> the case most of the time.
>
Thanks for catching my syntax error. Your problem with the Center_Trans macro
may be to another of my mistakes; Do you see the unmatched closing brace at the
end of the line? It would of course disappear when you comment/delete that line.
Also, it isn't enough for your object to merely encompass the origin, it must be
precisely centered or the FitScaleY transform won't behave properly. You may
have meant that . . . but . . .I wrote it :D
--
light_source{0,1}#macro c(J,a)sphere{0,1pigment{rgb z}scale a translate J+O}
#end#macro B(R,V,O)c(0,4)intersection{c(V,R)difference{c(-z*4x+10)c(-z*4.1x+
10)c(0<7.5,45,5>)}}#end B(12,0z*25)B(8y*4<0,12,50>) // Batronyx ^"^
Post a reply to this message
|
![](/i/fill.gif) |