mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 13:08:59 +00:00
Object › Plug-ins › Path Precision Tools › Tangent Circle… (`addon.pathtools.tangentCircle`) draws the circles that touch two selected paths or compound paths at a set radius, or that touch three of them. A circle touches a shape when it meets the outline without crossing it, with the whole outline outside the circle or inside it: at a smooth point it is tangent there, and at a corner or an open end it passes through that point. Circles, ellipses at any angle and other closed or open paths all work; the members of a compound path count as one outline. When every shape is a circle, the circles are found in closed form (up to eight for three circles, the problem of Apollonius) and then moved onto the drawn Bézier circles, which differ from true circles by up to 0.0273% of the radius. Other shapes are searched on a grid, and the centers left are refined with Newton's method on the curves. With three shapes, circles up to 64 times the diagonal of the box around the shapes' anchors and handles are found. The circles are listed by radius, then top to bottom, then left to right. The dialog takes the radius (with two shapes; 36 pt to start) and previews every circle found or one picked by number; OK draws them with the current paint as one undo step, selected. No circle, more than 64 circles (shapes touched along a whole curve, such as two concentric circles), shapes at one point or too small for the radius, more than 2000 segments and a search past its limits are errors that leave the document unchanged. The Tangent Circle and Circle: rows are in every catalog, and the command's messages in the catalogs that translate messages. Docs: docs/mcp.md (Path Precision Tools add-on), docs/target-app-parity.md, docs/ui-parity.md and ROADMAP.