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