mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 13:08:59 +00:00
Object › Plug-ins › Path Precision Tools › Common Tangents… (`addon.pathtools.commonTangents`) adds the common tangent lines of two selected convex closed paths as separate open paths: external (both paths on the same side of the line), internal (the lines between them) or all, and with Centerline the line joining the two centers. An ellipse drawn with the Ellipse tool is measured as an exact ellipse at any rotation and scale; any other path must be closed, have one outline and bend the same way all around, with at most 10000 segments. Each line runs between the points where it touches the two paths, or covers a straight side that lies along it. Separate paths have four tangents, overlapping paths only external ones (two for ellipses), and a path inside the other none. Paths that touch, from outside or from inside, share one tangent instead: a line centered on the point where they touch and as long as the narrower path is wide along it. When there is no tangent of the kind asked for, nothing changes and the result carries a warning that says why. The lines take the current stroke and no fill, go directly above the upper path and are selected, as one undo step. The dialog has Preview. The geometry is in vectorcraft-pathops: the tangents are the zeros of the difference of the two outlines' support values over the normal's angle, sampled at 720 even steps and at every angle where either path's touching point passes to another segment, then refined, so the work per pair is bounded. Catalog rows for the menu item, the dialog and the messages are in every catalog. Docs: docs/mcp.md (Path Precision Tools add-on), docs/target-app-parity.md and ROADMAP.