I want to convert STEP files to gLTF. I know that gLTF suuports hierarchy of assemblies and parts. Source: https://cadexchanger.com/blog/283-how-to-load-3d-cad-data-into-three-js-part-2

However, it is not straightforward to convert from STEP to gLTF. Converting from STEP to gLTF requires a two step approach. First convert STEP to COLLADA (.dae) using FreeCAD libraries. Then convert from .dae to gLTF using https://github.com/KhronosGroup/COLLADA2GLTF

So since, first i have to make a pass through .dae files, will hierarchy of assembly be present in my final gLTF file?

  • $\begingroup$ Have you tried it? COLLADA (.dae) does have a node hierarchy, so I'd guess it should work. I know that COLLADA2GLTF will preserve a hierarchy IF it exists in the .dae file. $\endgroup$
    – emackey
    Oct 5 '20 at 18:46
  • $\begingroup$ This is most probably true. Thank you! $\endgroup$ Oct 6 '20 at 13:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.