POV-Ray : Newsgroups : povray.general : alligning a torus : alligning a torus Server Time
2 Aug 2024 18:11:25 EDT (-0400)
  alligning a torus  
From: JWV
Date: 17 Aug 2004 11:08:09
Message: <41221f59@news.povray.org>
hello,

I am having some problems with rotating a torus. I have a vector, and a
torus in the scene, and I want the torus rotated in such a way that the
"normal"of the torus is equal to V1. Should this be done  manualy, or is
there some sort of macro/trick for it?

Here is the code to explain what i mean:

#declare V1=<10,3,-10>; //or any other vector

cylinder{0,V1,0.1 pigment{Green}}

#union{
torus{0.5,0.1}
cylinder{0,y,0.1}//"normal" of the torus
pigment{Red}
rotate ???????
}

So, what I am trying to do is making te red cylinder pointing in the same
direction as the green one.

I hope someone can help me,

Greetings,

JWV


Post a reply to this message

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