Drawings as data: build segments, join them into paths, put paths on layers with a colour and a
line type, write the parts as a DXF or SVG file, read either back into the same parts, and
convert one file into the other. None of it needs a kernel; the drawing of a shape comes from
occt.io.shapeToDxfPaths, and a view
of one from occt.io.saveShapeSvg and saveShapeDxf.
Drawings as data: build segments, join them into paths, put paths on layers with a colour and a line type, write the parts as a DXF or SVG file, read either back into the same parts, and convert one file into the other. None of it needs a kernel; the drawing of a shape comes from occt.io.shapeToDxfPaths, and a view of one from occt.io.saveShapeSvg and saveShapeDxf.