POV-Ray : Newsgroups : povray.general : Poly to connect ellipsoids.. Server Time
1 Nov 2024 05:19:28 EDT (-0400)
  Poly to connect ellipsoids.. (Message 1 to 6 of 6)  
From: Alex Vandiver
Subject: Poly to connect ellipsoids..
Date: 3 Nov 1999 22:49:18
Message: <3821025E.E830585B@tiac.net>
I seem to remember, _somewhere_ recently, a poly (quadric?) that would
smoothly connect two ellipsoids; this can't be done with a simple cone.
Does this ring any bells with anyone, or am I being delusional..again?
I can't find anything like it on the 'net, nor in any macro packages..
Thanks,
-Alex Vandiver


Post a reply to this message

From: Bill DeWitt
Subject: Re: Poly to connect ellipsoids..
Date: 3 Nov 1999 23:06:26
Message: <38210642@news.povray.org>
Yeah, supercone...

///////////// begin

#macro SuperCone(end1,a,b,end2,c,d)
  intersection
  { quartic
    { <0, 0,  0,  0, 0,   0,   0,  b*b-2*b*d+d*d, 2*(b*d-b*b), b*b,
       0,  0,   0,  0,   0,  0, 0,  0,  0, 0,
       0, 0,  0, a*a-2*a*c+c*c, 2*(a*c-a*a), a*a, 0,  0,  0, 0,
       -(a*a-2*a*c+c*c)*(b*b-2*b*d+d*d),
       -(2*((b*d-b*b)*(a*a-2*a*c+c*c)+(a*c-a*a)*(b*b-2*b*d+d*d))),
       -(b*b*(a*a-2*a*c+c*c)+4*(a*c-a*a)*(b*d-b*b)+a*a*(b*b-2*b*d+d*d)),
       -(2*(b*b*(a*c-a*a)+a*a*(b*d-b*b))), -a*a*b*b>
      sturm
    }
    cylinder { 0, z, max(max(a,b),max(c,d)) }
    bounded_by { cone { 0, max(a,b), z, max(c,d) } }

    #local Dirv=end2-end1;
    scale <1,1,vlength(Dirv)>
    #local VX1=z;
    #local VX2=vnormalize(Dirv);
    #local VY=vcross(VX2,VX1);
    #if(vlength(VY)>0)
      #local VY=vnormalize(VY);
      #local VZ1=vcross(VY,VX1);
      #local VZ2=vcross(VY,VX2);
      matrix < VX1.x, VY.x, VZ1.x,
               VX1.y, VY.y, VZ1.y,
               VX1.z, VY.z, VZ1.z,
               0     0      0 >

      matrix < VX2.x, VX2.y, VX2.z,
               VY.x,  VY.y,  VY.z,
               VZ2.x, VZ2.y, VZ2.z,
               0,     0,     0 >
    #end
    translate end1
  }
#end

camera { location <6,5,-10> look_at 0 angle 35 }
light_source { <100,100,-20>,1 }
plane { y,-1.5 pigment { checker rgb 1, rgb .5 } }

object
{ SuperCone(<0,-1.5,0>,1,2, <0,1.5,0>,1,.5)
  pigment { rgb y } finish { specular .5 }
}

//////////////// end

Alex Vandiver <van### [at] tiacnet> wrote in message
news:3821025E.E830585B@tiac.net...
> I seem to remember, _somewhere_ recently, a poly (quadric?) that would
> smoothly connect two ellipsoids; this can't be done with a simple cone.
> Does this ring any bells with anyone, or am I being delusional..again?
> I can't find anything like it on the 'net, nor in any macro packages..
> Thanks,
> -Alex Vandiver
>


Post a reply to this message

From: Ken
Subject: Re: Poly to connect ellipsoids..
Date: 4 Nov 1999 06:13:51
Message: <38216916.AAE482D1@pacbell.net>
Bill DeWitt wrote:
> 
> Yeah, supercone...

This was Warp's invention was it not ?

-- 
Ken Tyler -  1200+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Bill DeWitt
Subject: Re: Poly to connect ellipsoids..
Date: 4 Nov 1999 08:12:34
Message: <38218642@news.povray.org>
Ken <tyl### [at] pacbellnet> wrote in message
news:38216916.AAE482D1@pacbell.net...
>
>
> Bill DeWitt wrote:
> >
> > Yeah, supercone...
>
> This was Warp's invention was it not ?
>

    I don't know. Although the test file I used it in survived the crash, I
don't have my storage of saved postings that I would use for attribution. I
thought it was John VanSickle but I am probably wrong.


Post a reply to this message

From: Nieminen Juha
Subject: Re: Poly to connect ellipsoids..
Date: 4 Nov 1999 08:22:40
Message: <382188a0@news.povray.org>
Bill DeWitt <the### [at] earthlinknet> wrote:
:     I don't know. Although the test file I used it in survived the crash, I
: don't have my storage of saved postings that I would use for attribution. I
: thought it was John VanSickle but I am probably wrong.

  The matrix stuff is VanSickle's, but the quartic is mine.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Bill DeWitt
Subject: Re: Poly to connect ellipsoids..
Date: 4 Nov 1999 08:45:21
Message: <38218df1@news.povray.org>
Nieminen Juha <war### [at] punarastascstutfi> wrote :
>
>   The matrix stuff is VanSickle's, but the quartic is mine.
>

OK, I added that to a comment in the snippet in case I ever post it again.


Post a reply to this message

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