Skip to content

Instantly share code, notes, and snippets.

@miura
Created June 18, 2015 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miura/84c403b9b9da0a1a94fb to your computer and use it in GitHub Desktop.
Save miura/84c403b9b9da0a1a94fb to your computer and use it in GitHub Desktop.
java3D testing
from com.sun.j3d.utils.universe import SimpleUniverse
from com.sun.j3d.utils.geometry import ColorCube
from javax.media.j3d import BranchGroup
universe = SimpleUniverse()
group = BranchGroup()
group.addChild(ColorCube(0.3))
universe.getViewingPlatform().setNominalViewingTransform()
universe.addBranchGraph(group)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment