POV-Ray : Newsgroups : povray.advanced-users : elliptical cone? : Re: elliptical cone? Server Time
30 Jul 2024 12:31:03 EDT (-0400)
  Re: elliptical cone?  
From: ingo
Date: 28 Jul 1999 14:57:01
Message: <379f527d@news.povray.org>
Larry Fontaine heeft geschreven in bericht <379F3F96.48A201E8@isd.net>...
>I want to make a "cone" of sorts that smoothly connects two ellipses (on
>parallel planes) which aren't similar. ........

Though not probably not the most elegant, is this what you're looking for?

#declare A=2;
#declare B=1;

#declare NrPoints=10;
#declare Step=360/NrPoints;
#declare Phi=-Step;

prism {
   quadratic_spline
   conic_sweep
   0,1
   NrPoints+2
   #while (Phi<360+Step)
       <A*cos(radians(Phi)), B*sin(radians(Phi))>
       #declare Phi=Phi+Step;
   #end
   sturm
   pigment {rgb <1,0,0>}
}

ingo
--
Met dank aan de muze met het glazen oog.


Post a reply to this message

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