VRML output for discrete K surfaces

Have jReality programming problems or questions? Post them here.
Post Reply
yair
Posts: 3
Joined: Sun 25. Oct 2009, 07:50

VRML output for discrete K surfaces

Post by yair » Sun 25. Oct 2009, 19:38

I really love the discrete K surfaces viewer, and would like to export some iterations to VRML or STL for further modifications and perhaps to produce physical representations of the geometry to demonstrate the concept.

While the Discrete K Surfaces viewer does not have built in VRML export, the JRViewerVR does. I saw that there is a tutorial to implement the Discrete K Surfaces application in ViewerVR (http://www3.math.tu-berlin.de/jreality/ ... _Gauss_map), but I can't get it to run. I get hung up on the third step, trying to run "The fields of KSurfacesApp" returns "Parse error at line 25, column 86. Encountered: <EOF>", which points to the last line, last character of the code. I am not sure why, as I am not very knowledgeable with Java or scripting in general.

In reality, all I want to do is export the model from the disrete K surface viewer to VRML or STL. I did see this bit of code here: http://www3.math.tu-berlin.de/jreality/ ... mmary.html:
ExportVRML

public ExportVRML(String name,
Viewer viewer,
Component parentComp)

If someone could just explain to me how to run this correctly in Discrete K Surface viewer to save out a VRML (or STL, doesn't matter), I would be so very grateful!
Sorry for the long winded question...

Thanks so much,
Yair

yair
Posts: 3
Joined: Sun 25. Oct 2009, 07:50

Re: VRML output for discrete K surfaces

Post by yair » Wed 28. Oct 2009, 03:55

I figured it out. Thanks. JReality is awesome.

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: VRML output for discrete K surfaces

Post by steffen » Thu 29. Oct 2009, 22:49

JReality is awesome.
Thanks! Sorry for the slow response... How did you export the geometry? You can open the left slot (from the menu) and scroll for the navigator. Then expand the scene graph (Content-> ... -> K-Surface) and right-click on the component or the geometry and see what the context menu offers. You can export the component to U3D or the geometry to OBJ.

yair
Posts: 3
Joined: Sun 25. Oct 2009, 07:50

Re: VRML output for discrete K surfaces

Post by yair » Fri 30. Oct 2009, 00:26

Thanks so much. This is much better than what I was doing.
I found a couple of things. First, I think the tutorial I mentioned was missing a "}" at the end of the third step, which is pretty much as far as my knowledge of programming stretches and did not get me much further. Secondly, there is an older version of the K Surface viewer that works more with the JRViewer interface. With that application, you can export to STL or VRML, but it did take me a little bit of time to figure out how to gain control of the Gaussian curvature and control points, which I learned have graphic 3d menus if you double click in the model on the points or surface.
Now my only remaining question is how to gain explicit control of the initial curve points. Is there a way to enter coordinates, or can this only be achieved by clicking and dragging?
In any case exporting the mesh has been a great success, and I am really enjoying the app.

Thanks
Yair

Post Reply