|
|
Kevin Loney <klo### [at] pt2mcom> wrote in message news:3cdc51b1@news.povray.org...
> Anyone know how I might go about making the helix conform to the surface of
> the sphere? I'm using f_helix1(x,y,z,6,-1,.15,.85,1,1,0) from functions.inc.
This works quite well, though it looks like min_radius changes even though I
don't change it:
#declare f_Distort2DRadiusToSphere =
function(y,fSphereRad,f2DRad) {
sqrt(max(fSphereRad*fSphereRad - y*y,0))*f2DRad/fSphereRad
}
isosurface {
function {
f_helix1(x,y,z,6,-1,.15,f_Distort2DRadiusToSphere(y,.7,.7)+.15,1,1,0)
}
max_gradient 4
contained_by { box { -<1,.7,1>, <1,.7,1> } }
}
Post a reply to this message
Attachments:
Download 'hel.jpg' (11 KB)
Preview of image 'hel.jpg'
|
|