Closed sethfischer closed 1 year ago
I experimented with this and a transformation may be required perhaps something like the following in _dxf_spline
:
spline.Transform(plane.rG.wrapped.Trsf()*adaptor.Trsf())
and a similar transformation in the other dxf methods.
Testing with:
text = cq.Workplane("XZ").text("CQ", 5, 1)
cq.exporters.dxf.exportDXF(text.section(), "output.dxf")
Solved in #1267
CadQuery: 2.2.0 Python: 3.9.5 ezdxf: 1.0.1 OS: Ubuntu 20.04.5
The DXF generated by the following has its splines offset. A bug appears to be in
cadquery.occ_impl.exporters.dxf._dxf_spline
.output.dxf
viewed in LibreCad 2.1.3: