Ejemplo n.º 1
0
 /**
  * Returns a new simple frame with an image panel group.
  *
  * @param ipg an image panel group.
  * @return the simple frame.
  */
 public static RSFFrame asImagePanels(ImagePanelGroup ipg) {
   RSFFrame sf = new RSFFrame();
   sf.addImagePanels(ipg);
   sf.getOrbitView().setWorldSphere(ipg.getBoundingSphere(true));
   return sf;
 }
Ejemplo n.º 2
0
 /**
  * Returns a new simple frame with a triangle group.
  *
  * @param tg a triangle group.
  * @return the simple frame.
  */
 public static RSFFrame asTriangles(TriangleGroup tg) {
   RSFFrame sf = new RSFFrame();
   sf.addTriangles(tg);
   sf.getOrbitView().setWorldSphere(tg.getBoundingSphere(true));
   return sf;
 }