|
 |
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
|
 |