POV-Ray : Newsgroups : povray.general : Oval Shape Server Time
11 Aug 2024 09:22:47 EDT (-0400)
  Oval Shape (Message 7 to 16 of 16)  
<<< Previous 6 Messages Goto Initial 10 Messages
From: Mr  Art
Subject: Re: Oval Shape
Date: 1 Sep 1999 12:32:30
Message: <37CD54FE.76230D45@gci.net>
Isn't the equation for a 2D oval/ellips something like
(x^2)/a + (y^2)/b = 0? A circle is x^2+y^2=0.
Couldn't we find the part of the torus discription
that deals with the major radius and add the division
parts?

Nieminen Juha wrote:

> Mark Wagner <mar### [at] gtenet> wrote:
> : A true oval cannot be created by scaling a torus.
>
>   Perhaps I'll think about how to do it with a poly-object. It looks like
> it will need a 6th degree polynomial (since the regular torus need a 4th
> degree one)...
>
> --
> 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: Mark Wagner
Subject: Re: Oval Shape
Date: 2 Sep 1999 00:24:26
Message: <37cdfbfa@news.povray.org>
Mr. Art wrote in message <37CD54FE.76230D45@gci.net>...
>Isn't the equation for a 2D oval/ellips something like
>(x^2)/a + (y^2)/b = 0? A circle is x^2+y^2=0.
>Couldn't we find the part of the torus discription
>that deals with the major radius and add the division
>parts?


An oval is not an ellipse, they just look similar.  An oval is easier to
draw freehand, but an ellipse is easier to create mathematically.

Mark


Post a reply to this message

From: Mr  Art
Subject: Re: Oval Shape
Date: 2 Sep 1999 00:35:06
Message: <37CDFE45.9B214917@gci.net>
Point taken. But is there someone out there that can point out the
places in the code to put the values a and b in something like
this?
// Torus having major radius sqrt(40), minor radius sqrt(12)
#declare Torus=
quartic {
 <
    1,   0,   0,   0,   2,   0,   0,
    2,   0,-104,   0,   0,   0,   0,
    0,   0,   0,   0,   0,   0,   1,
    0,   0,   2,   0,  56,   0,   0,
    0,   0,   1,   0, -104,  0, 784
 >
 sturm
 pigment{White}
 }
This is almost stright form the docs.

Mark Wagner wrote:

> Mr. Art wrote in message <37CD54FE.76230D45@gci.net>...
> >Isn't the equation for a 2D oval/ellips something like
> >(x^2)/a + (y^2)/b = 0? A circle is x^2+y^2=0.
> >Couldn't we find the part of the torus discription
> >that deals with the major radius and add the division
> >parts?
>
> An oval is not an ellipse, they just look similar.  An oval is easier to
> draw freehand, but an ellipse is easier to create mathematically.
>
> Mark


Post a reply to this message

From: Nieminen Juha
Subject: Re: Oval Shape
Date: 2 Sep 1999 03:22:25
Message: <37ce25b1@news.povray.org>
Mr. Art <mr.### [at] gcinet> wrote:
: Point taken. But is there someone out there that can point out the
: places in the code to put the values a and b in something like
: this?

  It's not as easy as "putting the values a and b in this".
  I have been calculating polynomials (man, I wish I got some mathematical
program to help me; typing polynomials by hand is tedious) and it seems
to be impossible.
  If I'm correct, a perfect elliptical torus would require a 8th degree
polynomial (a very simple explanation of this is that it's because the torus
is a 4th degree polynomial and you have to raise it to the power of 2).
Povray can only handle polynomials up to the 7th degree. Bad luck.
  A non-perfect elliptical torus (ie. the minor radius does not stay
constant along the torus) may require only a 6th degree polynomial (note:
this torus is not the same as a scaled torus; the minor radius would be
the same at both axes of symmetry; the radius will differ at the "corners").

-- 
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: John M  Dlugosz
Subject: Re: Oval Shape
Date: 2 Sep 1999 17:26:13
Message: <37ceeb75@news.povray.org>
How about a "sweep" object of some kind?

Bob Hughes <inv### [at] aolcom> wrote in message
news:37cc138e@news.povray.org...
> An oval using the torus is not going to turn out right unless you use
> Kens second method. Uneven scaling is one thing, procedural-type
> scaling is another, of which POV-Ray is unable to do. Another
> possibility is to string together spheres or blob components along a
> spline path, just not as efficient.


Post a reply to this message

From: John M  Dlugosz
Subject: Re: Oval Shape
Date: 2 Sep 1999 17:27:45
Message: <37ceebd1@news.povray.org>
You need a copy of Mathematica!

I can't use more than a fraction of what it does, but it's too cool to give
up so I won't give it away <g>.  Maybe you can get a special student price?

Nieminen Juha <war### [at] cctutfi> wrote in message
news:37ce25b1@news.povray.org...
>   I have been calculating polynomials (man, I wish I got some mathematical
> program to help me; typing polynomials by hand is tedious) and it seems
> to be impossible.


Post a reply to this message

From: Bob Hughes
Subject: Re: Oval Shape
Date: 2 Sep 1999 19:16:12
Message: <37cf053c@news.povray.org>
If you mean in official Pov, don't think that would be any different
than trying to scale a torus, ie. 'lathe', 'sor' etc. are still
circular, so I don't see any way other than some CSG method.  Keep in
mind I do not know all there is to know by far.

Bob

John M. Dlugosz <joh### [at] dlugoszcom> wrote in message
news:37ceeb75@news.povray.org...
> How about a "sweep" object of some kind?
>
> Bob Hughes <inv### [at] aolcom> wrote in message
> news:37cc138e@news.povray.org...
> > An oval using the torus is not going to turn out right unless you
use
> > Kens second method. Uneven scaling is one thing, procedural-type
> > scaling is another, of which POV-Ray is unable to do. Another
> > possibility is to string together spheres or blob components along
a
> > spline path, just not as efficient.
>
>
>


Post a reply to this message

From: Mark Wagner
Subject: Re: Oval Shape
Date: 3 Sep 1999 00:47:07
Message: <37cf52cb@news.povray.org>
Nieminen Juha wrote in message <37ce25b1@news.povray.org>...
>Mr. Art <mr.### [at] gcinet> wrote:
>: Point taken. But is there someone out there that can point out the
>: places in the code to put the values a and b in something like
>: this?
>
>  It's not as easy as "putting the values a and b in this".
>  I have been calculating polynomials (man, I wish I got some mathematical
>program to help me; typing polynomials by hand is tedious) and it seems
>to be impossible.
>  If I'm correct, a perfect elliptical torus would require a 8th degree
>polynomial (a very simple explanation of this is that it's because the
torus
>is a 4th degree polynomial and you have to raise it to the power of 2).
>Povray can only handle polynomials up to the 7th degree.

Can the isosurface functions handle an 8th degree polynomial?

Mark


Post a reply to this message

From: Nieminen Juha
Subject: Re: Oval Shape
Date: 3 Sep 1999 04:02:12
Message: <37cf8084@news.povray.org>
Mark Wagner <mar### [at] gtenet> wrote:
: Can the isosurface functions handle an 8th degree polynomial?

  I suppose so.

-- 
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: Nieminen Juha
Subject: Re: Oval Shape
Date: 3 Sep 1999 04:05:07
Message: <37cf8133@news.povray.org>
John M. Dlugosz <joh### [at] dlugoszcom> wrote:
: You need a copy of Mathematica!

  But not an illegal one, that's for sure.

: Maybe you can get a special student price?

  AFAIK they don't sell students licenses for mathematica here at TUT. But
I have to ask. Maple is another possibility.

-- 
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

<<< Previous 6 Messages Goto Initial 10 Messages

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