home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
v
/
vanelsp.zip
/
VANE.LSP
< prev
Wrap
Lisp/Scheme
|
1991-12-13
|
686b
|
22 lines
(DEFUN C:vane()
(SETQ P1(OSNAP(GETPOINT "\nInside Corner: ")"quick,inter"))
(SETQ P2(OSNAP(GETPOINT "\nOutside Corner: ")"quick,inter"))
(SETQ D (DISTANCE P1 P2))
(SETQ N (/ D 6))
(SETQ N2 (/ N 3))
(setq ang (angle p1 p2))
(SETQ P7(POLAR P1 ANG N))
(SETQ VA1 (+(* Pi 0.6)(ANGLE P1 P7)))
(SETQ VA2 (+(* Pi 1.4)(ANGLE P1 P7)))
(SETQ P8 (POLAR P7 VA1 N2))
(SETQ P9 (POLAR P7 VA2 N2))
(SETQ P10 (POLAR P1 ANG(* N 2)))
(SETQ P11 (POLAR P1 ANG(* N 3)))
(SETQ P12 (POLAR P1 ANG(* N 4)))
(SETQ P13 (POLAR P1 ANG(* N 5)))
(COMMAND "ARC" P8 P7 P9)
(COMMAND "COPY" P7 "" P7 P10)
(COMMAND "COPY" P10 "" P10 P11)
(COMMAND "COPY" P11 "" P11 P12)
(COMMAND "COPY" P12 "" P12 P13)
)