Reputation: 43
I've been looking for ways how to convert vtk or stl files to json. I'm asking because I want to load my 3d models to web browser using https://github.com/xtk/X XTK library. But the vtk/stl files are too large (about 100 MB) to be displayed on the web.
I've read that the best solution is to write the model to JSON file.
I found this converter http://tmpvar.com/tmp/stl-json.html ,but the same problem occurs (too large size of the model).
Upvotes: 1
Views: 4663
Reputation: 11
Assimp (Open Asset Importer) may be what you need: http://assimp.sourceforge.net/
Here is a tool that implements conversion to json directly: https://github.com/acgessler/assimp2json It has both source code and windows binaries.
Upvotes: 1