kovacsv / occt-import-js

The emscripten interface for OpenCascade import functionalities.
GNU Lesser General Public License v2.1
141 stars 23 forks source link

occt-import-js gltf output #18

Closed ginolos closed 1 year ago

ginolos commented 1 year ago

Hello Kovacsv, Thanks for building such an awesome tool. Is there any way to export as gltf or convert the output to gltf? The JSON format is no longer supported by three js.

kovacsv commented 1 year ago

glTF export is out of the scope of this project, but you can find a function that converts the resulting json to three.js format in this fiddle. See the LoadGeometry function.

ginolos commented 1 year ago

Thank you!