POV-Ray : Newsgroups : povray.general : ?how to make spirals? Server Time
8 Aug 2024 10:25:29 EDT (-0400)
  ?how to make spirals? (Message 1 to 6 of 6)  
From: RWard
Subject: ?how to make spirals?
Date: 23 Jan 2001 09:25:52
Message: <3a6d9470$1@news.povray.org>
Any have a formula for constructing spirals......I am, unfortunately
mathematically challenged!!

thanks in advance...


Post a reply to this message

From: Warp
Subject: Re: ?how to make spirals?
Date: 23 Jan 2001 09:41:12
Message: <3a6d9808@news.povray.org>
RWard <rmw### [at] swbellnet> 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

From: RWard
Subject: Re: ?how to make spirals?
Date: 23 Jan 2001 10:39:16
Message: <3a6da5a4$1@news.povray.org>
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] tagpovrayorg> wrote in message
news:3a6d9808@news.povray.org...
> RWard <rmw### [at] swbellnet> 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

From: Micha Riser
Subject: Re: ?how to make spirals?
Date: 23 Jan 2001 11:18:24
Message: <3A6DAED0.1F1AF4CA@datacomm.ch>
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

From: Warp
Subject: Re: ?how to make spirals?
Date: 23 Jan 2001 12:00:42
Message: <3a6db8b9@news.povray.org>
RWard <rmw### [at] swbellnet> 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

From: Eitan Tal
Subject: Re: Simple:
Date: 23 Jan 2001 14:54:54
Message: <3A6DE144.4B4514A2@netvision.net.il>
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

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