POV-Ray : Newsgroups : povray.binaries.images : iso help Server Time
1 Nov 2024 01:26:05 EDT (-0400)
  iso help (Message 1 to 3 of 3)  
From: Kevin Loney
Subject: iso help
Date: 10 May 2002 19:03:13
Message: <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.

thanks

--
Kevin
http://www.geocities.com/qsquared_1999/
#macro _(r)#if(r<12)#local i=asc(substr("oqshilacefg",r,1))-97;
disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4pigment{rgb 10}}_(r+1)
#end#end _(1)//KL


Post a reply to this message


Attachments:
Download 'helix.jpg' (20 KB)

Preview of image 'helix.jpg'
helix.jpg


 

From: Tek
Subject: Re: iso help
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


 

From: Kevin Loney
Subject: Re: iso help
Date: 11 May 2002 13:00:18
Message: <3cdd4e22$1@news.povray.org>
Thats exactly what I was looking for, thanks

--
Kevin
http://www.geocities.com/qsquared_1999/
#macro _(r)#if(r<12)#local i=asc(substr("oqshilacefg",r,1))-97;
disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4pigment{rgb 10}}_(r+1)
#end#end _(1)//KL


Post a reply to this message

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