Skip to content

Instantly share code, notes, and snippets.

@garaemon
Created August 9, 2015 12:11
Show Gist options
  • Select an option

  • Save garaemon/4e0233737be6453d4f2e to your computer and use it in GitHub Desktop.

Select an option

Save garaemon/4e0233737be6453d4f2e to your computer and use it in GitHub Desktop.
(make-irtviewer :draw-origin nil)
(setq *a* (make-cube 240 150 2))
(setf (get *a* :face-color) :yellow)
(send *irtviewer* :change-background (gl::find-color :white))
(objects (list *a*))
(send (send (send *irtviewer* :viewer) :viewsurface) :color (float-vector 1 0 0))
(dotimes (i 1000)
(dotimes (j 1000)
(let ((x (- (* 10 i) 200))
(y (- (* 10 j) 200)))
(send (send (send *irtviewer* :viewer) :viewsurface) :3d-point (float-vector x y 0)))))
(send (send *irtviewer* :viewer) :flush)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment