Author Topic: (Challenge) polyline approximation  (Read 4466 times)

0 Members and 1 Guest are viewing this topic.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: (Challenge) polyline approximation
« Reply #15 on: February 05, 2008, 11:39:28 PM »
How about a  variant of gile's test3?
Code: [Select]
(defun test3A (pl / n p l)
  (vl-load-com)
  (setq n -1)
  (reverse
    (while (setq p (vlax-curve-getpointatdist pl (setq n (1+ n))))
      (setq l (cons p l))
    )
  )
)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

JohnK

  • Administrator
  • Seagull
  • Posts: 10646
Re: (Challenge) polyline approximation
« Reply #16 on: February 06, 2008, 09:58:27 AM »
Cool code guys!
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org