Author Topic: Challenge ( Kind of ) Arc Entmake Data  (Read 9032 times)

0 Members and 1 Guest are viewing this topic.

xyp1964

  • Guest
Re: Challenge ( Kind of ) Arc Entmake Data
« Reply #30 on: April 13, 2010, 08:43:04 AM »
Quote
;; ArcWith3pt (ArcWith3pt p1 p2 p3)
(defun ArcWith3pt (P1 P2 P3)
  (defun 3d2d (point)
    (if   (= (length point) 3)
      (list (car point) (cadr point))
      point
    )
  )
  (command "ucs" "n" "3" "non" p1 "non" p2 "non" p3)
  (command "arc"
      "non"
      (3d2d (trans P1 0 1))
      "non"
      (3d2d (trans P2 0 1))
      "non"
      (3d2d (trans P3 0 1))
  )
  (command "ucs" "p")
  (entlast)
)