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