Jump to content

Divisions - A little help


teknomatika

Recommended Posts

What is the reason why the divisions are not always accurate? For example, 28 divisions? But with other dividers.

I appreciate the explanation.

 

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun DTR (A)
(* PI (/ A 180.0))
)
(defun c:STA (/ nr len ang ang1 pc1 pc2 )
(setq nr (getint "\n Nr. Divisions? "))
(setq len (getdist "\n Segments Length? "))
(setq ang (/ 360 nr))
(setq ang1 (dtr 0))
(setq pc1 (getpoint "\n Central Point: "))
(setq pc2 (polar pc1 ang1 len))
(command "_.line" "_non" pc1 "_non" pc2 "")
(repeat nr
(setq ang1 (+ ang1 ang))
(setq pc2 (polar pc1 (dtr ang1) len))
(command "_.line" "_non" pc1 "_non" pc2 "")
)
(princ)
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...