home *** CD-ROM | disk | FTP | other *** search
- ;;CME-LINE-UTILS.LISP - some utilities for manipulating feature sets
- ;; full of cme 2d-curves - Bob Collins 2/6/96
- ;; depends on ISR/isr2rcde.lisp
-
- (in-package 'cme)
-
- (defun convert-isr-tokens-to-cme-curves (tokenset fs)
- (let ((world (2d-world fs)))
- (isr2::for-every-token (tok tokenset (x1 y1 x2 y2))
- (let ((vx1 (isr2::value x1))
- (vy1 (isr2::value y1))
- (vx2 (isr2::value x2))
- (vy2 (isr2::value y2)))
- (add-object
- (make-2d-curve
- :vertices (cme::make-vertex-array-from-vertex-list
- (list (list vx1 vy1 0.0)
- (list vx2 vy2 0.0)))
- :closed-p t
- :world world)
- fs)))
- fs))
-