|
|
There is an easier way to do an ellipse:
#declare majorVector = vnormalize(<1,0,0>)
#declare minorVector = vnormalize(<1,0.1,0>)
#declare majorRadius = 2;
#declare minorRadius = 1;
#declare CenterP = <0,0,0>;
#declare camT = 0;
#while ( camT < 1 ) // Goes from zero to one
#declare thisT = camT * 2 * pi;
#declare camPos = CenterP + (cos(thisT)*majorVector*majorRadius) +
(sin(thisT)*minorVector*minorRadius);
sphere { camPos 0.1 pigment { rgb 1 } finish { phong 1 } }
#declare camT = camT + 0.1;
#end
----
Well, maybe not so easy. What other shapes were you interested in?
Josh
Wlodzimierz ABX Skiba wrote:
> I had no time to search algorithm for distribution points on elipse
> therefore I quickly prepare some method to find them.
>
> Perhaps it can be useful for somebody for example in
> camera movement, with oval buildings or with some abstract creation.
>
> Perhaps it can be extended with other shapes.
>
> images -> p.b.i (for nseg=4,15,50 ~ 82,6 KB)
> source -> p.b.s-f
>
> ABX
>
> [Image]
>
> [Image]
>
> [Image]
--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/
Post a reply to this message
|
|