DXF importer cannot load wires
- Dominant language
- Python
- Stars
- 5.8k
- Forks
- 541
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 5
Description
The DXF importer at cadquery/occ_impl/importers/dxf.py tries to assemble the loaded file into faces and throws an error if this is not successful. It would be nice to be able to load DXF files that contain wires and edges, but no faces.
for name, layer in layers.items():
if name.lower() in selected:
res = _dxf_convert(layers[name], tol)
wire_sets = sortWiresByBuildOrder(res)
for wire_set in wire_sets:
faces.append(Face.makeFromWires(wire_set[0], wire_set[1:]))
Removing the last three lines and returning a list of wires is basically sufficient.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.