 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Any have a formula for constructing spirals......I am, unfortunately
mathematically challenged!!
thanks in advance...
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
RWard <rmw### [at] swbell net> wrote:
: Any have a formula for constructing spirals......I am, unfortunately
: mathematically challenged!!
It depends on where and how do you plan to use it.
Are you going to, for example, arrange a set of objects in a spiral shape?
Do you want a smooth surface with a certain radius and a spiral shape (like
a torus with increasing main radius)?
--
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););} /*- Warp -*/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I am not quite sure, I think what I want right now, is a shape with a spiral
texture. I would like to try constructing various objects on a spiral
theme.
thanks
"Warp" <war### [at] tag povray org> wrote in message
news:3a6d9808@news.povray.org...
> RWard <rmw### [at] swbell net> wrote:
> : Any have a formula for constructing spirals......I am, unfortunately
> : mathematically challenged!!
>
> It depends on where and how do you plan to use it.
> Are you going to, for example, arrange a set of objects in a spiral
shape?
> Do you want a smooth surface with a certain radius and a spiral shape
(like
> a torus with increasing main radius)?
>
> --
> char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
> main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
> c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););} /*- Warp -*/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
See
http://www.povworld.de/cgi-bin/objects/Geometrical_Objects/
for a macro that generates spirals.
Or go to
http://members.nbci.com/quadhall/isoi.html
see a formula for an isofunctional implementation of spirals. You will need
megapov to render isorufaces though.
- Micha
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
RWard <rmw### [at] swbell net> wrote:
: I am not quite sure, I think what I want right now, is a shape with a spiral
: texture.
There are two spiral patterns already in povray (spiral1 and spiral2).
Look in the documentation for details.
--
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););} /*- Warp -*/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
This should look like a spring.
for a spiral, change RadiusAdder to something positive;
and change ProgressPace to 0.
#declare Radius= 3
#declare CurrentAngle= 0
#declare SpinCount= 4
#declare ProgressPace= 15
#declare RadiusAdder= 0.001
#while (CurrentAngle < SpinCount*360)
sphere {
0,0.5
translate Radius*y
rotate CurrentAngle*z
translate ProgressPace*(CurrentAngle / 360)*z
pigment {color rgb CurrentAngle/(360*SpinCount)}
}
#declare CurrentAngle = CurrentAngle + 1
#declare Radius = Radius + RadiusAdder
#end
This should work out pretty well.
play with the values for a desired result.
hope I helped you out! :-)
RWard wrote:
> Any have a formula for constructing spirals......I am, unfortunately
> mathematically challenged!!
>
> thanks in advance...
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |