|
|
Reorient_Trans() returns a transformation (like rotate, etc), which has
to be applied to an object(such as your box). Position your object with
your initial vectors, then call Reorient_Trans() inside the box{}
wrapper.
Martin Thoma wrote:
>
> Hi Christoph,
>
> thanx for your answer, but it doesn't work:
>
> #declare a1 = <0, 1, 0>;
> #declare a2 = <xv3-xv1, yv3-yv1, zv3-zv1>;
>
> Reorient_Trans(a1, a2);
>
> Gives me an Error in transforms.inc:
>
> ...
> File: C:\Programme\POV-Ray for Windows v3.5\INCLUDE\transforms.inc Line: 84
> #local vZ2 = vnormalize(vcross(vX2, vY));
>
> transform <----ERROR
>
> Parse Error: Expected 'object or directive', transform found instead
>
> What am I doing wrong?
>
> Martin
--
signature{
"Grey Knight"
contact{
email "gre### [at] yahoocom"
}
site_of_week{
url "http://mathworld.wolfram.com"
}
}
Post a reply to this message
|
|