|
![](/i/fill.gif) |
In article <3a832b34$1@news.povray.org>, "Spock" <spo### [at] nospam com>
wrote:
> Thank you. Unfortunately I am too dense to get vtransfrom to run... let
> alone interpret the results.
The vtransform() function just lets you apply transformations (like
translate, rotate, scale, and matrix) to a vector. You use like this:
#declare TransformedPt = vtransform(Pt, rotate...scale...etc);
In your case, it might be easier to declare the transformation ahead of
time:
#declare MyTrans = transform {rotate x*30}
#declare Loc = < 9, 9, 9>;
union {
sphere {< 30, 19, 12>, 2}
sphere {Loc, 1}
pigment {rgb < 1, 1, 1>}
transform {MyTrans}
#declare Loc = vtransform(Loc, transform {MyTrans});
}
BTW, a couple things: the "object {}" blocks in your code were not
necessary, and your spheres were missing the comma between the position
and the radius. The first one will work fine, it's just more typing, but
the second one could cause trouble, and is harder to read anyway.
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
![](/i/fill.gif) |