Is is possible to work with CAD formats with JReality?

General discussion area.
Post Reply
can
Posts: 2
Joined: Fri 29. May 2015, 12:40

Is is possible to work with CAD formats with JReality?

Post by can » Fri 29. May 2015, 12:50

Hi,
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();
But none of them seems working the console output says that the file formats are not supported.

Thank you in advance for your suggestions or answers .

Post Reply