POV-Ray : Newsgroups : povray.binaries.images : iso help : Re: iso help Server Time
15 Aug 2024 18:11:02 EDT (-0400)
  Re: iso help  
From: Tek
Date: 11 May 2002 06:27:27
Message: <3cdcf20f@news.povray.org>
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'
hel.jpg


 

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