mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-07 14:33:34 +00:00
A path made of straight segments and circular arcs (a slot, a D shape, a rounded rectangle, a pie) was written as one SPLINE, or as a flattened polyline in R12. It is now one polyline whose vertices carry a bulge (group 42) for each arc: an LWPOLYLINE in R14 and later, a POLYLINE with VERTEX entities in R12 and R13, closed when the path is closed. Each run of cubics on one circle becomes one arc. A path with any other curve stays a SPLINE, and whole circles, arcs and ellipses keep their CIRCLE, ARC and ELLIPSE entities. - The circle test's tolerance is 5e-4 of the smaller of the radius and the curve's extent, so a shallow curve that is not circular is no longer written as an ARC. - The drawing extents take each ARC's and each bulge's furthest points. Part of #1299