POV-Ray : Newsgroups : povray.general : Equal distribution along stretched circle circumference - how to do it? : Re: Equal distribution along stretched circle circumference - how to do it? Server Time
8 Aug 2024 01:12:52 EDT (-0400)
  Re: Equal distribution along stretched circle circumference - how to do it?  
From: Jan Walzer
Date: 29 Mar 2001 13:35:00
Message: <3ac38054@news.povray.org>
IIRC you have to do some integration ... don't ask me how ...

All I can remember, was to start with the function for the path ...

       /x\   /cos(t)*40\
P(t): ( y )=( sin(t)*20 )    // this should look like vectors
       \z/   \    0    /

somehow you have now to integrate now for t
then you have to do something with this ...

when you have finished, you probably can simplify it and it's
possible, that the solution is something with cos(), but it's hard to
tell from here ...

Maybe someone here can help, or tell you where the formulas for this
kind of stuff are ...

--
background{rgb 1}camera{location<1,5,-2>look_at 0}#macro
m(a,b,i)#local d=(b-a)
/8;#local
e=vcross(d,y);#if(i)m(a-e,a+e+2*d,i-1)m(a+e,a+2*d-e,i-1)m(a+3*d-e,a+e
+3*d,i-1)m(a+3*d-e,a+5*d-e,i-1)m(a+6*d-e,a+e+6*d,i-1)m(a+8*d-e,a+e+8*d
,i-1)#else
cylinder{a,b,vlength(d)/3 pigment{rgb 0}}#end#end m(-4*x,2*x,4) // Jan
Walzer


Post a reply to this message

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