Path Precision Tools: Add Bounding Circle bounds the work on curves and holds small loops

Add Bounding Circle splits the curves of one command 1,048,576 times at
most in all, shared equally among the shapes with `each`. A piece that
still bends after the last split counts by the hull of its control points
cut down to its bounding box, so a large circle near the canvas edge keeps
a close radius.

- A path of a compound path selected on its own counts as an object, as
  `object.transform` moves it, for both commands.
- A small loop whose ends meet gets a circle instead of being taken for a
  single point.
- The smallest enclosing circle measures its radius from the center it
  returns, after the move back from the first point, and does not copy
  the hull to do so.
- The params text, docs/mcp.md and docs/target-app-parity.md describe the
  limit and the compound path rule.
This commit is contained in:
dotCooCoo
2026-11-18 18:09:01 -08:00
parent c963325e6f
commit 95d1bf91be
5 changed files with 211 additions and 49 deletions
+8 -6
View File
@@ -13711,12 +13711,14 @@ Commands:
their corners, and type and other objects by the corners of their bounding box. It splits each curve into pieces
until every piece's control points lie within 0.01 pt of its chord, fits the circle to the ends of the pieces, and
makes the radius 0.01 pt larger, so the circle holds the curves themselves. A curve is split into 1,024 pieces at
most; a piece that still bends more counts by its control points, which can make the circle slightly larger than the
smallest one. `offset` (0 or more, default 0) adds space: a rectangle grows by `offset` on each side and a circle's
radius grows by `offset`. `each: true` draws one shape around each selected object instead of one around the whole
selection. The menu items Add Bounding Rectangle… and Add Bounding Circle… open a dialog with Offset (0 to 4,000,000
pt, default 0), One per Object (`each`, default off) and Preview; OK draws the shapes as one undo step, and Cancel
removes the preview without a step of history.
most, and one command splits its curves 1,048,576 times at most in all (with `each`, shared equally among the
shapes); a piece that still bends more counts by the hull of its control points cut down to its bounding box,
which can make the circle slightly larger than the smallest one. A path of a compound path selected on its own
counts as an object, as `object.transform` moves it. `offset` (0 or more, default 0) adds space: a rectangle grows
by `offset` on each side and a circle's radius grows by `offset`. `each: true` draws one shape around each selected
object instead of one around the whole selection. The menu items Add Bounding Rectangle… and Add Bounding Circle…
open a dialog with Offset (0 to 4,000,000 pt, default 0), One per Object (`each`, default off) and Preview; OK draws
the shapes as one undo step, and Cancel removes the preview without a step of history.
Each shape gets the current paint and goes on top of the current layer, or of the isolated group, as other new art
does; inside an isolated compound path it goes beside the compound path and does not join it. The new shapes are
+1 -1
View File
@@ -2835,7 +2835,7 @@ A VectorCraft addition, so no area score moves. Object › Plug-ins › Path Pre
## Path Precision Tools add-on: Add Bounding Rectangle and Add Bounding Circle (2026-11-17)
A VectorCraft addition, so no area score moves. Object › Plug-ins › Path Precision Tools › Add Bounding Rectangle (`addon.pathtools.boundingRectangle`) draws a live rectangle on the selection's geometric bounding box, and Add Bounding Circle (`addon.pathtools.boundingCircle`) draws the [smallest enclosing circle](https://en.wikipedia.org/wiki/Smallest-circle_problem) of the selected outlines, with curves flattened to within 0.01 pt and the radius 0.01 pt larger, so the circle holds the curves. A curve is split into 1,024 pieces at most; a piece that still bends more counts by its control points, which can make the circle slightly larger than the smallest one. Both use the current paint, go on top of the current layer or the isolated group, and are one undo step; shapes with no size are skipped (#6966). The commands take `each` (one shape per object) and `offset`, and the menu items Add Bounding Rectangle… and Add Bounding Circle… open a dialog with Offset, One per Object and Preview. Tests: `shapes::tests` in `vectorcraft-geom` (`enclosing`, `convex_hull`), `cmd::addons::pathtools::bounding::tests` in `vectorcraft-engine` and `addons::pathtools::tests` in `vectorcraft-ui-egui` (`add_bounding_rectangle_and_circle_open_a_dialog_with_offset_and_one_per_object`). Commands: `docs/mcp.md` › Path Precision Tools add-on.
A VectorCraft addition, so no area score moves. Object › Plug-ins › Path Precision Tools › Add Bounding Rectangle (`addon.pathtools.boundingRectangle`) draws a live rectangle on the selection's geometric bounding box, and Add Bounding Circle (`addon.pathtools.boundingCircle`) draws the [smallest enclosing circle](https://en.wikipedia.org/wiki/Smallest-circle_problem) of the selected outlines, with curves flattened to within 0.01 pt and the radius 0.01 pt larger, so the circle holds the curves. A curve is split into 1,024 pieces at most, and one command splits its curves 1,048,576 times at most in all (shared equally among the shapes); a piece that still bends more counts by the hull of its control points cut down to its bounding box, which can make the circle slightly larger than the smallest one. Both use the current paint, go on top of the current layer or the isolated group, and are one undo step; shapes with no size are skipped (#6966). The commands take `each` (one shape per object) and `offset`, and the menu items Add Bounding Rectangle… and Add Bounding Circle… open a dialog with Offset, One per Object and Preview. Tests: `shapes::tests` in `vectorcraft-geom` (`enclosing`, `convex_hull`), `cmd::addons::pathtools::bounding::tests` in `vectorcraft-engine` and `addons::pathtools::tests` in `vectorcraft-ui-egui` (`add_bounding_rectangle_and_circle_open_a_dialog_with_offset_and_one_per_object`). Commands: `docs/mcp.md` › Path Precision Tools add-on.
## Path Precision Tools add-on: Expand Dashes into Paths (2026-11-01)