|
|
Trying to use POV to generate columns with x number grooves, forget my
math (to many years ago.....). this is the code I used but not working,
can someone enlighten me please. I know it has something to do with the
sin/cos stuff but can't figure it out with the remaining 3 brain cells
in my skull.
// ----------------------------------------
#declare grooves = 36
#declare vector = 360/grooves
#declare groove_now = 1
difference{
cylinder{ <0,0,0>, <0,3,0>, 1 pigment {Red} }
#while (groove_now <= grooves)
cylinder{ <sin(vector), -1, cos(vector)> <sin(vector), 4,
cos(vector)>, .1 pigment {Blue} }
#declare groove_now = groove_now + 1
#declare vector = vector + 360/grooves
#end
}
Post a reply to this message
|
|