POV-Ray : Newsgroups : povray.newusers : rotations Server Time
29 Jul 2024 04:21:50 EDT (-0400)
  rotations (Message 1 to 3 of 3)  
From: virgiliu
Subject: rotations
Date: 13 Feb 2007 14:40:00
Message: <web.45d213acd19d7119fd410cdc0@news.povray.org>
Hi guys,
how do I define a set of points by their coordinates and then apply some
transformations (e.g. rotations, translations, etc ) and then use this
points again with their new coordinates?


Post a reply to this message

From: Warp
Subject: Re: rotations
Date: 13 Feb 2007 15:03:21
Message: <45d21989@news.povray.org>
virgiliu <vir### [at] yahoocom> wrote:
> how do I define a set of points by their coordinates and then apply some
> transformations (e.g. rotations, translations, etc ) and then use this
> points again with their new coordinates?

  You can put the points in an array, apply vrotation(), addition (which
is equivalent to translation) and multiplication (equivalent to scaling)
to them in a loop and then use the points.
  (If you can't figure out how to do something specific related to this
from the documentation, ask for an example.)

-- 
                                                          - Warp


Post a reply to this message

From: Florian Brucker
Subject: Re: rotations
Date: 14 Feb 2007 14:20:19
Message: <45d360f3$1@news.povray.org>
In addition to what Warp mentioned you can also use the vtransform macro
from transforms.inc.


HTH,
Florian


Post a reply to this message

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