anything like polar but goes around in a circle

anything like polar but goes around in a circle

cadking2k5
Advocate Advocate
818 Views
4 Replies
Message 1 of 5

anything like polar but goes around in a circle

cadking2k5
Advocate
Advocate

Is there anything like polar but goes around in a circle because if you rotate the axis in your command all of your points change.

0 Likes
819 Views
4 Replies
Replies (4)
Message 2 of 5

john.uhden
Mentor
Mentor

How about if you don't rotate your axis until later?

Actually, my girlfriend would probably love it, but I can't figure out how.

John F. Uhden

0 Likes
Message 3 of 5

ronjonp
Advisor
Advisor

Not sure i understand the question but here's a stab at it:

(defun _foo (p d i / a c r)
  (setq a (/ (* pi 2) i))
  (setq c 0)
  (repeat (fix i) (setq r (cons (polar p c d) r)) (setq c (+ c a)))
  r
)
;; Makes a circle @ '(0 0 0) of 100 points with a radius of 8
;; (_foo '(0 0 0) 8. 100)
0 Likes
Message 4 of 5

Kent1Cooper
Consultant
Consultant

@cadking2k5 wrote:

Is there anything like polar but goes around in a circle because if you rotate the axis in your command all of your points change.


 

Some explanation in more detail would be appreciated.  What kind of command(s) are you talking about?  At what point in that command do you want to call for "anything like polar," what kind of input do you want to give it, and what result do you want from it?  Etc., etc.  There may be something built in that does what you want, or a routine already on the Forums, that someone can direct you to, but not without a better understanding of the goal.

Kent Cooper, AIA
0 Likes
Message 5 of 5

scot-65
Advisor
Advisor
Explore the following:

Arc Length equals Radius times Angle (as radians).

L = R x A

Two of these must be known in order to find the third.

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes