POV-Ray : Newsgroups : povray.advanced-users : Shear_Trans usage? : Re: Shear_Trans usage? Server Time
30 Jun 2024 02:39:03 EDT (-0400)
  Re: Shear_Trans usage?  
From: Tor Olav Kristensen
Date: 18 Jan 2010 20:35:00
Message: <web.4b550b4eadbc88f5d6291f840@news.povray.org>
Jim Charter <jrc### [at] msncom> wrote:
> Can anyone show me proper usage of the Shear_Trans macro.
>
> This is a modification I made to the "Basic Scene" supplied on the
> insert menu.  Can't get it to parse.
>
> #local A=<1,2,3>;
> #local B=<1,2,3>;
> #local C=<1,2,3>;
....
>    Shear_Trans(A,B,C)
....

Hi Jim,

You have to make sure that no two of those three vectors are parallel.

I.e.: These three conditions have to be met:

vlength(vcross(A, B)) > 0
vlength(vcross(B, C)) > 0
vlength(vcross(C, A)) > 0

(Note that there are also other ways to check for parallel vectors.)

--
Tor Olav
http://subcube.com


Post a reply to this message

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