POV-Ray : Newsgroups : povray.text.scene-files : VRML tp POV rotations : Re: VRML tp POV rotations Server Time
28 Jun 2024 23:15:18 EDT (-0400)
  Re: VRML tp POV rotations  
From: Warp
Date: 9 Mar 2003 13:17:07
Message: <3e6b8523@news.povray.org>
J. Cranmer <joh### [at] worldcom> wrote:
> Rotation {  rotation  1 0 1.61803   1.570796326795}   

  You should explain to those who don't know VRML (like me) what that does.

  If that generates a rotation of 1.570796326795 radians around the
axis <1, 0, 1.61803>, then what you need to use is the Axis_Rotate_Trans()
macro (in transforms.inc). (Note that you need to convert the angle to
degrees, which is most easily done with the degrees() function.)

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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