Message 1 of 5

Not applicable
10-25-2016
05:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
(vl-load-com) (defun c:sphere3d (stacks latitudes radius / 2PI thetad phid) (defun nhemisphere (pole_rad / curtheta curphi) (setq curtheta thetad) (setq curphi phid) (while (< curtheta pole_rad) (setq loncircleradius (* (cos curtheta) radius)) (setq loncircleelev (* (sin curtheta) radius)) (while (< curphi 2PI) (setq x (* (cos curphi) radius)) (setq y (* (sin curphi) radius)) (print x) (entmake '((0 . "POINT") (67 . 0) (100 . "AcDbPoint") (10 x y loncircleelev) (210 0.0 0.0 1.0) (50 . 0.0) ) ) (setq curphi (+ curphi phid)) ) (setq curtheta (+ curtheta thetad)) ) ) (setq 2PI (* PI 2)) (setq thetad (/ PI latitudes)) (setq phid (/ 2PI stacks)) (setq radius 1) (nhemisphere (/ PI 2)) ) ;defunc:c
Things appear to end with a bad DXF group code in the console. I'm trying to draw the vertexes. Is there some solution?
Solved! Go to Solution.