spin.rotX(Math.PI/4.0d); tempspin.rotY(Math.PI/5.0d); spin.mul(tempspin); spin.setScale(0.7); spin.setTranslation(new Vector3d(-0.4, 0.3, 0.0));
trans.rotX(Math.PI/4.0d); rot.rotY(Math.PI/5.0d); trans.mul(rot); trans.setScale(0.7); trans.setTranslation(new Vector3d(-0.4, 0.3, 0.0));
  public BranchGroup createSceneGraph(Raster drawRaster)  {    // Create the root of the branch graph    BranchGroup objRoot = new BranchGroup();    // spin object has composited transformation matrix    Transform3D spin = new Transform3D();    Transform3D tempspin = new Transform3D();    spin.rotX(Math.PI/4.0d);    tempspin.rotY(Math.PI/5.0d);    spin.mul(tempspin);    spin.setScale(0.7);    spin.setTranslation(new Vector3d(-0.4, 0.3, 0.0));    TransformGroup objTrans = new TransformGroup(spin);    objRoot.addChild(objTrans);    // Create a simple shape leaf node, add it to the scene graph.    // ColorCube is a Convenience Utility class    objTrans.addChild(new ColorCube(0.4));    //Create a raster     Shape3D shape = new Shape3D(drawRaster);    objRoot.addChild(shape);    // Let Java 3D perform optimizations on this scene graph.    objRoot.compile();    return objRoot;  }