POV-Ray : Newsgroups : povray.general : Twist an isosurface : Re: Twist an isosurface Server Time
31 Jul 2024 16:17:37 EDT (-0400)
  Re: Twist an isosurface  
From: "Jérôme M. Berger"
Date: 19 Dec 2006 03:26:08
Message: <4587a220$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

dave vanhorn wrote:
> Is there any way to apply a linear twist to an isosurface?
> 
> What I'm after is to twist the heart iso, by about 30 degrees, (+/- 15) 
> along the Y axis.
> 
> 
	Replace x by (x * cos (f (y)) + z * sin (f (y))
	Replace z by (-x * sin (f (y)) + z * cos (f (y))

	Where f is a function that defines the way you want the surface to
twist (the simplest being K*y for some constant K).

		Jerome
- --
+------------------------- Jerome M. BERGER ---------------------+
|    mailto:jeb### [at] freefr      | ICQ:    238062172            |
|    http://jeberger.free.fr/     | Jabber: jeb### [at] jabberfr   |
+---------------------------------+------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD4DBQFFh6Idd0kWM4JG3k8RAvd0AJiagT8lHXsA0eBixWRAozGS8TawAJ4oBbo1
4ZEwfkyQZMASWwlP5vDOqQ==
=T0fP
-----END PGP SIGNATURE-----


Post a reply to this message

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