POV-Ray : Newsgroups : povray.binaries.images : selfaproximation : Re: selfaproximation Server Time
1 Oct 2024 20:25:13 EDT (-0400)
  Re: selfaproximation  
From: Josh English
Date: 21 Jul 2000 14:16:32
Message: <39789402.36309182@spiritone.com>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.