em / svg2gcode

Convert SVG to Gcode
54 stars 15 forks source link

Automatically determine toPoly integer scale based on occupied space #1

Open em opened 10 years ago

em commented 10 years ago

Do getPoints first, keep track of the bounding box, then use the abs max of the limits to determine an integer scale. This approach shouldn't require any tolerances to account for the divisions because we are working with the actual nominal curve instead of the theoretic one.