Closed xsrf closed 3 years ago
Tracks (and thus board outlines) only support line segments, no curves. Converting curves to lines with a given resolution would be convenient before import. These may be useful: https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/getPointAtLength https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/getTotalLength
Maybe use paperjs: http://paperjs.org/tutorials/paths/smoothing-simplifying-flattening/#flattening-paths
Done with 0ca1fc07096bce5737e63394a15447a207c3b054
Tracks (and thus board outlines) only support line segments, no curves. Converting curves to lines with a given resolution would be convenient before import. These may be useful: https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/getPointAtLength https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/getTotalLength