Dear friends:
I'm a begginer. I've made a small rutine that draws a cone and some circles over it. But, some cases it works well, but, in other cases, the circles are not drawed correctly. The "pendiente" is the slope of the cone. When the slope is low, the circles are drawed all in the same plane.
(defun c:cono ()
(setq v (getpoint "\nVertice:"))
(setq p (getreal "\nIngrese la pendiente %:"))
(setq r 400)
(setq a (* r (/ p 100)))
(setq p1 (list (car v) (cadr v) (- (caddr v) a)))
(command "cone" p1 r a)
(setq j a)
(while (> j 0)
(setq z (- (caddr v) j))
(setq p2 (list (car v) (cadr v) z))
(command "circle" p2 (/ j (/ p 100)))
(setq j (- j 1))
)
)
Please someone help me.