SHARE
TWEET

Untitled

a guest Feb 18th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public Cube3D() {
  2.     SimpleUniverse universe = new SimpleUniverse();
  3.     BranchGroup group = new BranchGroup();
  4.     ColorCube cube = new ColorCube(0.1);
  5.     TransformGroup GT = new TransformGroup();
  6.     Transform3D transform = new Transform3D();
  7.  
  8.     GT.setTransform(transform);
  9.     GT.addChild(cube);
  10.     group.addChild(GT);
  11.     universe.getViewingPlatform().setNominalViewingTransform();
  12.     universe.addBranchGraph(group);
  13. }
  14.  
  15.  
  16. public static void main(String[] args) {
  17.     // TODO code application logic here
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top