示例#1
0
文件: Viewer3D.java 项目: psava/cwp12
 /**
  * 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;
 }
示例#2
0
文件: Viewer3D.java 项目: psava/cwp12
 /**
  * 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;
 }