[求助]如何绘制三维多段线?
CAD里展绘了三维点实体,想编写代码实现绘制三维多段线,即将点连成三维多段线,请问如何处理? <p>有没有高手回答这个问题</p><p>、</p> PolyLine3d (defun c:test ()
(setq pts '((102.946 68.6354 3) (112.102 97.4851 3) (125.484 59.4879 3) (103.651 52.4513 3))
Closed 1
)
(Ent:Make_Poly pts 1)
)
(defun Ent:Make_Poly (pts Closed / e)
(if (=Closed 1)
(setq e (Entmake (list '(0 . "POLYLINE") '(70 . 9))))
(setq e (Entmake (list '(0 . "POLYLINE") '(70 . 8))))
)
(foreach p pts
(entmake (list '(0 . "VERTEX") '(70 . 32) (cons 10 p)))
)
(entmake '((0 . "SEQEND")))
(entlast)
)
页:
[1]