POV-Ray : Newsgroups : povray.windows : ah, to dream Server Time 1 Apr 2023 15:25:21 EDT (-0400)
 ah, to dream (Message 1 to 4 of 4)
 From: galenwolfe Subject: ah, to dream Date: 10 Sep 2013 18:25:01 Message:
```
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"@id": "#web.522f9be9b90a18ae7f43d30%40news.povray.org",
"dateCreated": "2013-09-10T22:25:01+00:00",
"datePublished": "2013-09-10T22:25:01+00:00",
"author": {
"@type": "Person",
"name": "galenwolfe"
}
}
One of the few tasks I've set myself in order to stay sane is to get back into
using POV-Ray and not dumping for one of the visual based programs. On that
front, one of the first things I want to do is make a dream catcher that I can
plug simple numbers in as variables and the coding does all the rest of the
work.

So, you set Diameter as the diameter of the hoop (the first part of torus
descriptor) and Thick as the thickness of the hoop (variable 2 of the Torus
descriptor). Automatically you can set the starting point of the thread (Start)
as Diameter-(Thick/2) (as i understand it, the 2nd variable of a torus sets the
total diameter of the cylinder used in making the torus, so finding the inside
edge is half that).

Now, to the hard stuff as I was never more then a geometry kid in high school.

1) I figure telling the computer that the length of each initial cylinder
'thread' is 1/nth (where n = the # of times you wrap the thread around the hoop
that establishes the first part of the weave) the circumference of the inside of
the torus {3.141593*[(r-thickness of hoop)squared]} or (3.141593 * Thick)/n. (if
I'm wrong correct me)

2)How do I tell POV-Ray to draw the Thread from the starting point to the proper
place along the inside of the Hoop without having to manually type in the
coordinates? I mean I understand I know how far the thread with stretch, but I
can't get my head to wrap around telling POV how to find that point. In the real
world I would use a ruler to measure to that point, but what 'ruler' do I get
POV to use?
```
 From: galenwolfe Subject: Re: ah, to dream Date: 10 Sep 2013 18:35:01 Message:
```
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"@id": "#web.522f9ddd6821ef05e7f43d30%40news.povray.org",
"dateCreated": "2013-09-10T22:35:01+00:00",
"datePublished": "2013-09-10T22:35:01+00:00",
"author": {
"@type": "Person",
"name": "galenwolfe"
}
}

how do I find the new circumference created by the initial row of threads? Thus
allowing me to continue the thread 'weaving' d # of times?
```
 From: Samuel Benge Subject: Re: ah, to dream Date: 11 Sep 2013 13:35:01 Message:
```
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"@id": "#web.5230a8946821ef056c6286ed0%40news.povray.org",
"dateCreated": "2013-09-11T17:35:01+00:00",
"datePublished": "2013-09-11T17:35:01+00:00",
"author": {
"@type": "Person",
"name": "Samuel Benge"
}
}
"galenwolfe" <gal### [at] yahoocom> wrote:
>
> how do I find the new circumference created by the initial row of threads? Thus
> allowing me to continue the thread 'weaving' d # of times?

I'm not going to answer your questions directly (yet), but here is the 'motor'
behind many radial operations in programming:

#declare Rot = 30; // degrees

// point of rotation 'Rot' with radius 'Rad' along the x-y plane
#declare RotatedPt =
sin(pi*2/360*Rot),
cos(pi*2/360*Rot),
0
>;

Or, you could do it this way:

Connecting two points amounts to just making two different points in this
manner!

Does this help?

Sam
```
 From: Le Forgeron Subject: Re: ah, to dream Date: 11 Sep 2013 15:35:04 Message: <5230c5e8\$1@news.povray.org>
```
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"@id": "#5230c5e8%241%40news.povray.org",
"dateCreated": "2013-09-11T19:35:04+00:00",
"datePublished": "2013-09-11T19:35:04+00:00",
"author": {
"@type": "Person",
"name": "Le Forgeron"
}
}
Le 11/09/2013 00:31, galenwolfe nous fit lire :
>
> how do I find the new circumference created by the initial row of threads? Thus
> allowing me to continue the thread 'weaving' d # of times?
>

From looking at
> http://www.wikihow.com/Make-a-Dreamcatcher

it seems that, starting with a 8 attach points, the thread go from N to
N+2 until it cross the line of N-1 to N+1 at which point it goes to N+1.

8 regular points on a circle are every pi/4 (or 45°). Going from N to
N+2, the line is also at 45° and stop after pi/8 from the center.