Indeed, I only note IfcOpenShell can convert to Collada and then to glTF.yorik wrote: ↑Fri Oct 26, 2018 2:13 pmgltf indeed seems very cool, it's under my radar for some time... However, all apps I have seen that import/use gltf also take more common mesh formats such as obj or stl. Since FreeCAD won't export any UV / texturing stuff anyway, there wouldn't be any real advantage to export gltf directly.
Better to wait until there is a nice gltf i/o library out there that we can use
Code: Select all
>>> import cqparts >>> cqparts.Assembly.importer('step')('myfile.stp').exporter('gltf')('myfile.gltf')
I created a wiki page to document this: gITF
Use OCC 7.5 There is support for reading and writing glTF 2.0 The name implies only writing but here it is mentioned occt also reads glTF
Nice. Maybe we can open a FR to add gITF native support in FreeCAD ?