POV-Ray : Newsgroups : povray.news-submissions : getting coordinates : getting coordinates Server Time
24 Apr 2024 22:02:18 EDT (-0400)
  getting coordinates  
From: Coucou
Date: 1 Jan 2010 13:00:01
Message: <web.4b3e3792f4a8fccee40e8a80@news.povray.org>
Hi
Happy new years !
I have a small problem
I written the following simple macro
#macro Foot(c1,c2,R,col)
cylinder {
       C1
       c2
       R
       pigment {color col}

}
#end
with such a call
#declare MyRedFoot =  Foot(<0,0,0>,<0,10,0>,1,Red)
But i would like to calle
#declare MyRedFoot =  Foot(<0,0,0>,h,1,Red)
where h is height of foot. Macro would be

#macro Foot(c1,h,R,col)
cylinder {
       C1
       <x.C1, y.C1 + h, z.C1>
       R
       pigment {color col}

}
but of course it doesn't work like i hope because i do not know x y and z
How to get x, y and z of C1 ?

Thanks a lot


Post a reply to this message

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