CAD Formats & Pipeline • • 5 min read
SolidWorks to GLB Without Broken Normals or Missing Parts: Production Checklist
Avoid inverted normals, missing sub-assemblies, and blown-up origin pivots when converting SolidWorks assemblies into WebGL-ready GLB files.
"Whenever we try exporting SolidWorks assemblies to GLTF/GLB ourselves, half the surfaces look inside-out, parts float in space, and the explode view breaks."
Clean SolidWorks-to-GLB conversion requires fixing surface winding normals, resetting hierarchical node origins at each sub-assembly centroid, and normalizing world scale before Draco compression.
Direct CAD-to-mesh plugins frequently export mirrored parts with negative scale matrices—causing WebGL back-face culling to render castings invisible from one side. Similarly, uncentered part origins cause explode sliders to scatter components off-screen.
Following a disciplined pre-flight checklist eliminates every visual artifact before the model reaches your website.
1. Five Common SolidWorks-to-GLB Failure Modes
If your DIY WebGL exports look broken, check these five pipeline steps:
- Negative-Scale Mirrored Parts: Mirrored CAD components carry negative determinant transforms that flip vertex winding; bake transforms and recalculate outward normals.
- Off-Center Explode Origins: When every part shares the world [0,0,0] origin, radial explode math fails. Center local bounds or compute directional vectors from the assembly centroid. Test SCARA Robot Explode
- Z-Up vs. Y-Up Axis Mismatch: CAD tools typically use Z-up while WebGL/glTF specifies Y-up. Always apply a clean -90° X rotation and ground-plane alignment. Inspect BLDC Actuator
- Missing Coplanar Cap Geometry: Open surface bodies fail stencil cutaway fills; ensure all sliced housings are manifold solids.
Frequently Asked Questions
Why do mirrored SolidWorks brackets disappear in Three.js?
Three.js uses front-face winding by default. Mirrored CAD parts with negative scale matrices invert triangle winding unless transforms are baked and normals recomputed.
Do we need to animate explode paths manually in SolidWorks?
No. A properly structured GLB node hierarchy allows proportional WebGL explode disassembly directly in the browser.