GLB and glTF are good at showing a model in a browser. They are poor at replacing the engineering file. A supplier who will machine, inspect or revise the part still needs STEP or the native CAD model.
GLB and glTF differ mainly in packaging: GLB is one binary file, glTF is a JSON scene that can point at extra buffers and images. Both are static meshes here. Neither is an editable CAD model.
Send glTF when the task is viewing
Use STEP to GLB or STEP to glTF when someone needs to rotate the shape, look at components or place the model in a web view. Inspect the result in the GLB viewer or the glTF viewer.
glTF coordinates are in metres. Check one known dimension after conversion. A model that looks right and is 1000 times off in scale is still the wrong deliverable.
A glTF that references .bin files or images must include those files. Remote URLs are not loaded. If textures are missing, the geometry may still be present; see missing glTF textures.
Keep STEP when the task is engineering
Choose STEP, not GLB, when the recipient needs any of these:
- a solid volume that is not a mesh estimate
- analytic faces and edges
- a file another CAD or CAM system will import as geometry
- a record of the design that can be compared with the next revision
A GLB made from STEP does not contain the feature tree, tolerances or the original surfaces. STEP versus a mesh is the same distinction: the mesh is a view of the shape, not the shape definition.
What not to promise
Do not describe a GLB as the manufacturing master, a lightweight STEP, or a file that can be converted back into the original CAD model. Mesh measurements are approximate. Mass still depends on a density the user chooses, and only after a usable volume exists.
A practical split
| Recipient needs | Send |
|---|---|
| Look at the model in a browser | GLB, or glTF with its local files |
| Machine, quote from solids, or edit the design | STEP, plus the drawing when the drawing controls the part |
| Both | STEP as the engineering file and GLB as the view, from the same revision |
Name the revision on both files. Two attractive views of different revisions are not a handoff.
Original article: CADProps · https://www.cadprops.com/guides/glb-gltf-for-cad-handoff/