My main concern is can I use Jreality for loading,displaying and even editing the cad files such as iges,dxf,dwg,obj formats.
I need to be able to manage layering (show-hide, highlight ,move,edit) objects.I have tried to load dxf and dwg files via JRViewer
by the code snippet below
Code: Select all
JRViewer v = new JRViewer();
URL url = Test.class.getResource("test.obj");
SceneGraphComponent sgc = null;
try {
sgc = Readers.read(Input.getInput(url));
sgc.setName("test");
} catch (IOException e) {
e.printStackTrace();
}
v.addBasicUI();
v.addVRSupport();
v.addContentSupport(ContentType.TerrainAligned);
v.registerPlugin(new ContentAppearance());
v.registerPlugin(new ContentTools());
v.setContent(sgc);
v.startup();
Thank you in advance for your suggestions or answers .