|
|
now i'm pulling out my hear on this problem
i just started with this macro to create a fence:
#macro Fence(Flength, Fheight, Fspace, Fdiam)
#local i=0;
#while(i< Flength/Fspace+1 )
cylinder{ <0,0,0> <0,Fheight,0> Fdiam/2 }
translate <i*Fspace, 0, 0>
#local i=i+1;
#end
#end
the macro itself is ok when rendered, but of course you only get a black
screen.
When i try to call the macro in an object as following, i get an error "no
matching '}' in object, cylinder found instead".
I allready found out the problem has to do with the #while loop. but i can't
find how to fix. Please can someone guide me throug this?
object{
Fence(400, 150, 20, 1.5)
pigment{ rgb .1 }
}
Post a reply to this message
|
|