POV-Ray : Newsgroups : povray.advanced-users : Elliptical torus Server Time
22 Dec 2024 22:53:39 EST (-0500)
  Elliptical torus (Message 1 to 4 of 4)  
From: bakom
Subject: Elliptical torus
Date: 20 Jul 2015 02:30:01
Message: <web.55ac94c9466943812a8ceaa30@news.povray.org>
Hi,
I have a macro for torus as

#include"transforms.inc"
#macro Torus(Center, Normal, Radius1, Radius2)
torus{ Radius1, Radius2 Reorient_Trans(y, Normal) translate Center }
#end

object {Torus (
1, 0, 0, 0, 0, 0, 2, 4)
texture{ pigment{ LightBlue} }}

How I modify it to make elliptical torus?


--
Thanks
Gurwinder Singh  Bains


Post a reply to this message

From: Le Forgeron
Subject: Re: Elliptical torus
Date: 20 Jul 2015 13:40:41
Message: <55ad3299$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Le 20/07/2015 08:27, bakom a écrit :
> Hi, I have a macro for torus as
> 
> #include"transforms.inc" #macro Torus(Center, Normal, Radius1,
> Radius2) torus{ Radius1, Radius2 Reorient_Trans(y, Normal)
> translate Center } #end
> 
> object {Torus ( 1, 0, 0, 0, 0, 0, 2, 4) texture{ pigment{
> LightBlue} }}
> 
> How I modify it to make elliptical torus?
> 

If you mean a rotating disc along an ellipse, you will need to use the
true equation (fourth order polynomial), as you cannot transform the
master circle into an ellipse while keeping the rotating circle a true
circle.

If you mean rotating an ellipse along a circle (elliptic torus at
Wolfram), a scale along the single axis of the torus should satisfy
you. (as long as you accept a scaled disc to be an ellipse).

> http://mathworld.wolfram.com/EllipticTorus.html

Otherwise, the fourth order polynomial is also the way to go. (quartic)


> http://wiki.povray.org/content/Reference:Polynomial


> 
> -- Thanks Gurwinder Singh  Bains
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iJwEAQEIAAYFAlWtMpgACgkQhKAm8mTpkW38EAQAofKMKOwCxn6AiJL7P/5F0/pL
rRsjLs1wBZkWHEqAV7My2EAyBaqc8HiSs7wdvZJsTNsOqxGUQ7hzbW8c95KpY3er
//WOh/wMuSeXMsz7b4SB14AXA4pL62NDY9QjLBXzC3mLrEUnVSCKywGhhrfX078t
B09qktCg7KjYClwEvsE=
=NkII
-----END PGP SIGNATURE-----


Post a reply to this message

From: Cousin Ricky
Subject: Re: Elliptical torus
Date: 27 Jul 2015 22:50:46
Message: <55b6ee06$1@news.povray.org>
On 07/20/2015 02:27 AM, bakom wrote:
> Hi,
> I have a macro for torus as
>
> #include"transforms.inc"
> #macro Torus(Center, Normal, Radius1, Radius2)
> torus{ Radius1, Radius2 Reorient_Trans(y, Normal) translate Center }
> #end
>
> object {Torus (
> 1, 0, 0, 0, 0, 0, 2, 4)
> texture{ pigment{ LightBlue} }}
>
> How I modify it to make elliptical torus?

Are you looking for something like this?

http://lib.povray.org/collection/roundedge/cousin%20ricky%201.3/roundedge_05.jpg

This object is available from the Object Collection.  If it's what 
you're looking for, you can go to lib.povray.org and type RoundEdge into 
the search field.


Post a reply to this message

From: bakom
Subject: Re: Elliptical torus
Date: 29 Jul 2015 23:35:00
Message: <web.55b99a70a032ea3d8ba51da30@news.povray.org>
Cousin Ricky <ric### [at] yahoocom> wrote:
> On 07/20/2015 02:27 AM, bakom wrote:
> > Hi,
> > I have a macro for torus as
> >
> > #include"transforms.inc"
> > #macro Torus(Center, Normal, Radius1, Radius2)
> > torus{ Radius1, Radius2 Reorient_Trans(y, Normal) translate Center }
> > #end
> >
> > object {Torus (
> > 1, 0, 0, 0, 0, 0, 2, 4)
> > texture{ pigment{ LightBlue} }}
> >
> > How I modify it to make elliptical torus?
>
> Are you looking for something like this?
>
> http://lib.povray.org/collection/roundedge/cousin%20ricky%201.3/roundedge_05.jpg
>
> This object is available from the Object Collection.  If it's what
> you're looking for, you can go to lib.povray.org and type RoundEdge into
> the search field.

Thanks alot for this.


Gurwinder singh


Post a reply to this message

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