title: Rotating and moving TriangleMesh in JavaFX. How do I transform the data when saving?
body: <p>I built an app in JavaFX 8 that can rotate and move TriangleMesh objects on screen.  I use the libraries from www.interactivemesh.org to read the STL files and create the TriangleMesh objects.</p>
  
  <p>When I write the TriangleMesh objects back to STL the original data is saved.  JavaFX doesn't change the original data.  I logged a jira and they said this is how it is supposed to work.</p>
  
  <p>How can I transform the mesh data when I save it?  I am hoping for a cross platform library that can transform a mesh that could integrate easily with JavaFX 8.</p>
  
  <p>I found hg.postspectacular.com/toxiclibs/wiki/Home.  They developed their own TriangleMesh and other objects.  If all else fails I will probably write a converter to convert the JavaFX TriangleMesh to their one and then use their transforms to transform the data so that I can save it to STL.  I am not sure if they actually change the data so that I can actually use it</p>
  
  <p>I also see I might need to look at JOGL (Java Bindings for the OpenGL).</p>