Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Tell me what's wrong with this function. It gets used numerous times in a routine I am writing.
No, it's not that the @Anonymous function is missing. Yes, I found the error this morning.
It is something for which we must always watch out.
Hint: It caused the creation of 72-vertex polylines when they should have been 4-vertex.
;;-------------------------------------------------------- ;; Function to rotate a set of points (data) in the format ;; (pt pt pt ... ) about a base point (bp) from p1 to p2: ;; (defun @rotdata (bp p1 p2 data / delta ang p newdata) (setq delta (@delta (angle bp p1)(angle bp p2))) ;; changed (08-07-18) (foreach p data (setq p (polar bp (+ (angle bp p) delta)(distance bp p)) new (cons p new) ) ) (reverse new) )
John F. Uhden
Solved! Go to Solution.