martymcguire/inkscape-openscad-poly — Issue #1: Limiting significant digits
Author: MakerBlock
Created: 2011-10-23 21:37:05+00:00
State: open

Per Schmarty, "I pushed an update a couple of days ago to have it keep 5 significant digits. Due to how floats are stored, this can sometimes produce weird long numbers due to small float errors."

For most printing purposes 1 significant digit, and at a maximum 2, would be more than adequate. This would mean precision down to 0.01mm, which is about as fine a feature as anyone would need from an Inkscape->OpenSCAD polygon tool. The current setup (as of 2011/10/23) is creating very long significant digit pairs for XY coordinates. Example, "[-11.556710000000001, -0.96667000000000003]". For my purposes, "[-11.6,-1.0]" would be sufficient.