POV-Ray : Newsgroups : povray.general : Connect 2 points with a box : Re: Connect 2 points with a box Server Time
7 Aug 2024 03:20:22 EDT (-0400)
  Re: Connect 2 points with a box  
From: s1631001
Date: 29 Nov 2001 06:11:55
Message: <3C061811.915D5C49@namtar.qub.ac.uk>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.