POV-Ray : Newsgroups : povray.advanced-users : Spherical isosurface : Re: Spherical isosurface Server Time
19 Apr 2024 16:22:24 EDT (-0400)
  Re: Spherical isosurface  
From: Mike Horvath
Date: 29 Nov 2016 12:59:05
Message: <583dc1e9$1@news.povray.org>
On 11/28/2016 6:42 PM, Mike Horvath wrote:
> Clipka gave me these formulas to generate a cylindrical isosurface.
>
> #declare fL = function(x,y,z) {y*100}
> #declare fC = function(x,y,z) {sqrt(x*x+z*z)*128}
> #declare fH = function(x,y,z) {atan2d(x,z)}
>
> What would be a formula for a sphere? L should be latitude, H longitude,
> and C radius.
>
> Thanks.

Maybe this?

#declare fL = function(x,y,z) {90+atand(sqrt(x*x+z*z)*128/y*100)}

Problem: L ranges from 0..100, and C ranges from 0..128, and I want to 
avoid generating a flattened ellipsoid.

Mike


Post a reply to this message

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