Problem Description

After exporting a glTF-file from my COMSOL Multiphysics model, I get an error message when I try to open it in an external viewer.

Solution

The most probable cause for this issue is that the external glTF-file you are using does not support lines. This is for instance the case with using glTF-files in Microsoft Office or on Facebook.

The workaround is to only export plot groups that contain surfaces to glTF. This means that plotting data set edges in the plot group has to be disabled. Streamline and line plots can be used if they are set to be tubes rather than lines.