EdgesGeometry is fine if you are starting with a solid mesh and just need to show its edges. But if you want to bring artisanally crafted lines from Blender into three.js there’s a better way:
- Select mesh, go to Edit mode Tab
- Open Menu Search, Fn+F3 on macOS
- Select “Mesh → Delete → Only Faces”
- Check result, edit the lines if you want
- File → Export → glTF
- Enable “Mesh → Loose Edges” in export settings
- Export and view
This comes into three.js as THREE.Line, THREE.LineLoop, or THREE.LineSegments objects. Unlike when exporting a solid mesh, quads and n-gons are not triangulated, you just get lines. Same method will work for point clouds, too, if you delete edges instead of just faces.