Intro01

From JReality Wiki
Revision as of 23:39, 15 July 2009 by Paulpeters (Talk | contribs)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Run the JRViewer application

Source file: Intro01


Run as Java webstart


This is perhaps the simplest jReality program that does something. In this case, it pops up an empty JRViewer window. Use the File->Load content menu item to load geometry, e.g. load dodec.off and press "e" to encompass the viewer.


import de.jreality.plugin.JRViewer;
 
public class Intro01 {
  
  public static void main(String[] args) {
    
	JRViewer.display(null);
  }
}


Previous: Developer Tutorial Developer Tutorial: Contents Next: Intro02