Access faces information in Shape3D objects
I'd like to save a scene created in Java3D application into an .obj file. For that I think I need to iterate over all faces (triangles) it the scene. I tried to read vertices from GeometryArray, but with no luck - I get NullPointerExceptions when using getCoordinates methods.
Does anyone know how can I do this? Or maybe there is already some lib for saving geometry (there is a loader for almost any kind of file, but I didn't find any savers)?
Thanks for your help