POV-Ray : Newsgroups : povray.windows : ah, to dream : Re: ah, to dream Server Time
26 Apr 2024 16:40:17 EDT (-0400)
  Re: ah, to dream  
From: Samuel Benge
Date: 11 Sep 2013 13:35:01
Message: <web.5230a8946821ef056c6286ed0@news.povray.org>
"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-2023 Persistence of Vision Raytracer Pty. Ltd.