POV-Ray : Newsgroups : povray.windows : ah, to dream : Re: ah, to dream Server Time: 22 Sep 2020 15:08:31 GMT
  Re: ah, to dream  
From: Samuel Benge
Date: 11 Sep 2013 17:35:01
"galenwolfe" <gal### [at] yahoocom> wrote:
> I forgot to add:
>
> 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
#declare Rad = 1; // radius

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

Or, you could do it this way:

#declare RotatedPt = vrotate(y*Rad, -z*Rot);

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

Does this help?

Sam


Post a reply to this message

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