Skip to content

2.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Nov 06:31

Added

  • G-code export for pen plotters — a new TortoiseGCode module (Linux
    too), beside TortoiseSVG. TortoiseGCode.render(_:options:) and
    Tortoise.gcode(options:) return G-code that traces the drawing with a pen,
    configured by GCodeOptions:
    • 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-style M3 S… + G4 P…) presets.
      Extra preamble / postamble lines 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 a paper (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 at paperOrigin
    • Arcs are split into G1 segments within 0.1 mm by default
      (.linearized(tolerance:)), or written as G2/G3 with .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) and travelFeedRate
      (default 3000 mm/min); pen-up travel uses G1, not G0

Fixed

  • TortoiseSVG drew arcs on the wrong side of their chord (#56). The
    sweep-flag of every A command was inverted, so any arc short of a full
    circle — half circles included — bent the opposite way from TortoiseCanvas
    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. The waves gallery 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