Repository navigation
Added
- G-code export for pen plotters — a new
TortoiseGCodemodule (Linux
too), besideTortoiseSVG.TortoiseGCode.render(_:options:)and
Tortoise.gcode(options:)return G-code that traces the drawing with a pen,
configured byGCodeOptions:- Not tied to a firmware. Pen up/down are raw G-code lines, with
.zAxis(up:down:)(the default,G0 Z5/G1 Z0) and
.servo(up:down:dwell:)(GRBL-styleM3 S…+G4 P…) presets.
Extrapreamble/postamblelines go after the fixed header
(G21,G90, pen up) and after the final return to (0, 0) - Placement. By default 1 tortoise unit = 1 mm, inset by a 10 mm
margin. Give apaper(width × height in mm) and the drawing is scaled
up or down to fill the area inside the margin, centered. The machine is
taken to be Y-up with the paper's bottom-left atpaperOrigin - Arcs are split into
G1segments within 0.1 mm by default
(.linearized(tolerance:)), or written asG2/G3with.native - Strokes are plotted in program order, keeping the pen down across
connected segments. Dots are a pen tap in place. Colors, pen widths, the
background and fills are ignored — a plotter holds one pen — and fully
transparent strokes and dots are skipped - Separate
drawFeedRate(default 1000 mm/min) andtravelFeedRate
(default 3000 mm/min); pen-up travel usesG1, notG0
- Not tied to a firmware. Pen up/down are raw G-code lines, with
Fixed
- TortoiseSVG drew arcs on the wrong side of their chord (#56). The
sweep-flag of everyAcommand was inverted, so any arc short of a full
circle — half circles included — bent the opposite way fromTortoiseCanvas
and from the tortoise's own path (circle(radius: 40, extent: 180)heading
north bulged down instead of up). Endpoints were always right, and full
circles looked right because both halves flipped. SVG exported by earlier
versions with partial arcs should be regenerated. Thewavesgallery image
has been regenerated with the corrected direction, so it now starts with a
trough, as the Xcode preview always has
What's Changed
- Canvas ゴールデンの perceptualPrecision を戻す(#49) by @temoki in #55
- Add G-code export for pen plotters by @temoki in #57
- Draw SVG arcs on the right side of their chord (#56) by @temoki in #58
Full Changelog: 2.2.0...2.3.0