|
 |
Anton Sherwood wrote:
> It appears to me that f (multiplied by whatever constant)
> is the Wrong Thing for the component radius, unless you want
> the lattice to break up at the top.
But if the radius is constant, the lattice gets thicker at the top.
I see the problem now: the vertical spacing is constant (0.5) but the
horizontal spacing shrinks (in proportion to the diameter of the cone).
Will elliptical components do?:
#declare h=1;
#declare mh=100;
blob {
threshold .5
#while (h<mh)
#declare f=(mh-h)/mh;
#declare a=sin(h)*5*f;
#declare b=(h)/5;
#declare c=cos(h)*5*f;
// sphere{<a,b,c>,f/2,f*20}
sphere { 0,1.5,1
scale <f,1,f>
translate <5*f,b,0>
rotate y*degrees(h)
}
#declare h=h+.5;
#end
pigment {color rgb 1}
}
--
Anton Sherwood -- br0### [at] p0b0x com -- http://ogre.nu/
Post a reply to this message
Attachments:
Download 'bryan1.jpg' (13 KB)
Preview of image 'bryan1.jpg'

|
 |