home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
vis-ftp.cs.umass.edu
/
vis-ftp.cs.umass.edu.tar
/
vis-ftp.cs.umass.edu
/
pub
/
Software
/
ASCENDER
/
ascendMar8.tar
/
UMass
/
BoldtNew
/
cme-line-utils.lisp
< prev
next >
Wrap
Lisp/Scheme
|
1996-02-06
|
635b
|
23 lines
;;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))