mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-12 23:05:05 +00:00
A Cutting Tools add-on command (Object › Plug-ins › Cutting Tools › Weed Box and Lines…, `addon.cutting.weed`) for vinyl cutting: around the selected art it adds a weed box, a rectangle at a margin outside the art's bounds, and weeding lines across the box, horizontal, vertical or both, by count or by spacing. Each line runs from one side of the box to the other and is left out over the art and within a gap of its outlines, so it stops at the art and the waste lifts off in pieces. The lines and the box are straight paths stroked in a chosen color swatch ([Registration] by default) with no fill, in one group named Weeding on top of the current layer, selected, as one undo step. While a clip group, or a group inside one, is edited in isolation, the group goes on top of the container that holds the outermost clip group around it. The art is measured by the outlines a cutter cuts: closed paths by their fill rule (the hole of an even-odd compound path gets lines too), open paths as lines, type by its glyph outlines, images by their frames, placed files by the art they show (by their boxes when the file can't be read), symbol instances by their art, and blends and other live objects by the art they draw. A clip group, and an object selected inside one, is measured by what shows inside the region its clipping paths clip to, and a clipping path selected on its own as its clip group. Art in a hidden group or layer is left out. The command refuses an empty selection, art with no outlines, bad params, and art or lines too complex to measure, with a message. The dialog has Preview; a Spacing above 0 is used instead of the Count. Docs: docs/mcp.md (Cutting Tools add-on) and docs/target-app-parity.md.