1)图三是编程用的,我用这个命令画图一时,但不知为什么图二的尺寸14和图一的12对不上.
2)学院派的这两行看不明呀
aaa (/ (+ (* a a) (* b b) (* c c -1.)) (* 2. a b))
aa (XYP-TF-ACOS aaa)
(defun c:4L ( / p1 a d e c b p2 aaa aa dd p4 bbb bb cc p3)
(setq
p1 (getpoint "\n四边形初始位置:")
a (getreal "\n四边形一条边: ")
d (getreal "\n四边形二条边: ")
e (getreal "\n四边形三条边: ")
c (getreal "\n四边形四条边: ")
b (getreal "\n四边形左对角线: ")
p2 (polar p1 0 a)
aaa (/ (+ (* a a) (* b b) (* c c -1.)) (* 2. a b))
aa (XYP-TF-ACOS aaa)
dd (- pi aa)
p4 (polar p2 dd b)
bbb (/ (+ (* b b) (* e e) (* d d -1.)) (* 2. b e))
bb (XYP-TF-ACOS bbb)
cc (- pi (+ aa bb))
p3 (polar p2 cc d)
)
(command "pline" "non" p1 "non" p2 "non" p3 "non" p4 "c")
(princ)
)
(defun c:4L (/ p1 a d e c b p2 aa p4 bb p3)
(setq p1 (getpoint "\n四边形初始位置: ")
a (getreal "\n四边形一条边: ")
d (getreal "\n四边形二条边: ")
e (getreal "\n四边形三条边: ")
c (getreal "\n四边形四条边: ")
b (getreal "\n四边形左对角线: ")
p2 (polar p1 0 a)
aa (xyp-TF-yxdl-3Side a b c)
p4 (polar p2 (- pi aa) b)
bb (xyp-TF-yxdl-3Side b d e)
p3 (polar p2 (- pi (+ aa bb)) d)
)
(command "pline" "non" p1 "non" p2 "non" p3 "non" p4 "c")
(princ)
)