3 ms·
If a Bézier-based circles with four nodes are too rough, I suppose a circle with 16 or 24 or 128 nodes can be made smooth enough to exceed the laser cutter's ma
by nine_k 3y ago
If a Bézier-based circles with four nodes are too rough, I suppose a circle with 16 or 24 or 128 nodes can be made smooth enough to exceed the laser cutter's margin of error.
If you want to produce a highly regular circle in Inkscape, draw a polygon with many nodes (say, 24), convert it to path, then make all nodes smooth and symmetric.
- itishappy 3y agoLike floating point errors, the representation can (in theory) be as precise as we like but that's not something most users are willing/able to adjust.
- raphlinus 3y agoThe actual formula is O(n^6) scaling, and for circles it's very easy to achieve that. So a circle divided into 16ths has 4096 times less error than one in quarters and one made of 128 nodes is a (binary) billion times better. This is true for curve fitting of arbitrary curves, not just circles, though arbitrary curve fitting is a bit tricky (it requires solving quartic equations). I personally think you can take this as evidence that cubic Béziers are "good enough" for all practical tasks requiring curve representation, though for specific applications there might be other representations that work better.
- hwayne 3y agoOr just use the ellipse (E) in Inkscape, set the start/end to 0, and hold down ctrl. Then inkscape will generate a `<circle>` svg element.
- oniony 3y agoBut the SVG in Inkscape is not a PDF on a machine that accepts PDF CAD drawings. When you print to PDF, the circle will have to be approximated, which is what the article is talking about.
- hwayne 3y agoThe article was about postscript, but the comment I was replying to was about how to approximate a circle in Inkscape, so I suggested a better approach.