portelli wrote:
>
> all right I made the blood cell now is there a way to randomly place it
> in a cylinder?
For a cylinder lying along the x axis you could try this:
#declare Rad = 1; //Radius
#declare Length = 10;
#declare R = seed(7);
//...
translate <rand(R)*Length, 0, rand(R)*Rad*2-1>
//That line will place the thing on a "slice" of the cylinder
rotate x*rand(R)*360
//And that line will rotate it randomly so that it could be anywhere
//in the cylinder
//...
--
Martin Magnusson
Mar### [at] studentuuse
http://www.geocities.com/SoHo/9946/
Post a reply to this message
|