POV-Ray : Newsgroups : povray.advanced-users : Parametrics and isosurfaces : Re: Parametrics and isosurfaces Server Time
3 May 2024 14:57:30 EDT (-0400)
  Re: Parametrics and isosurfaces  
From: Bald Eagle
Date: 1 Aug 2016 22:15:01
Message: <web.57a001e45c93b6e65e7df57c0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:

> Can you give an example?

I'll try.  It's something I'm exploring, so I'm no expert.
But there seemed to be a lot of RHO's being used, and when I thought about an
easy way to do certain things, having a third changing variable seemed like it
would be useful, and I wasn't sure how else I'd go about it.

x = ρcos(θ)sin(Φ)
y = ρsin(θ)sin(Φ)
z = ρcos(Φ)



http://www.microscopy-uk.org.uk/mag/imgjan06/Image13.jpg


ρ = sqrt(x^2+y^2+z^2), tan(θ) = y/x, tan(Φ) = sqrt(x^2+y^2)/z

r = ρ sin Φ, θ = θ, z = ρ cos Φ

ρ = sqrt(r^2+z^2), θ = θ, tan(θ) = r/z


ρ = 1 + 1/5*sin(6θ)*sin(5Φ)


r = rho.*sin(theta);
x = r.*cos(phi);
y = r.*sin(phi);
z = rho.*cos(theta);


Post a reply to this message

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