POV-Ray : Newsgroups : povray.newusers : Newbie syntax problem : Re: Newbie syntax problem Server Time
4 Sep 2024 16:13:09 EDT (-0400)
  Re: Newbie syntax problem  
From: Christoph Hormann
Date: 11 Nov 2002 10:57:35
Message: <3DCFD36D.3205E08D@gmx.de>
LibraryMan wrote:
> 
> Hi,
> I'm trying to do a prism with a dodecagon (? -- anyway, polygon with 12
> equal sides ) face and instead of trying to figure out the exact vectors
> of the points, I wanted to do something like specifying every 4th
> vector, then rotating the in-betweens around the y-axis, like this:
> 
> #declare v_01 =  <0.5, 0> ;
> #declare v_02 =  <0.5, 0> rotate y*30 ;
> [...]

Bob's suggestion is surely the best for your purpose but
rotating/transforming vectors can be done with
'vrotate()'/'vtransform()'.    See the documentation for details.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 02 Nov. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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