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
VRML output for discrete K surfaces
Re: VRML output for discrete K surfaces
I figured it out. Thanks. JReality is awesome.
Re: VRML output for discrete K surfaces
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.JReality is awesome.
Re: VRML output for discrete K surfaces
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
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