POV-Ray : Newsgroups : povray.general : Oval Shape : Re: Oval Shape Server Time
11 Aug 2024 05:12:58 EDT (-0400)
  Re: Oval Shape  
From: Mr  Art
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

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