POV-Ray : Newsgroups : povray.general : 3d math question : Re: 3d math question Server Time
5 Aug 2024 12:22:22 EDT (-0400)
  Re: 3d math question  
From: ABX
Date: 20 Sep 2002 17:56:41
Message: <ev5nou0gse9a1dbjmiggri6mll1tkfjnqq@4ax.com>
On Fri, 20 Sep 2002 22:46:44 +0100, "James Taylor"
<jim### [at] blueyondercouk> wrote:
> Hi all,
>
> If I have a set of 3d points which lay on a plane and a defined direction
> vector, what's the simplest way of rotating the points such that the normal
> of the plane points the same of the direction vector. I have a feeling this
> will be soooo simple but as always with this sort of thing, need a nudge in
> the right direction...

1. Get normal of plane as cross product of vectors on plane.
2. Use Reorient_Trans macro from "transforms.inc".

Is this sufficient ?

ABX


Post a reply to this message

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