mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 04:24:51 +00:00
Path Precision Tools: a path that ends on a curve still divides it after the curve is cut
The crossing search took a crossing only where the straight pieces it splits two curves into actually cross. A line trimmed at a curve ends where that search found the crossing, up to about 0.0001 pt off the curve. Once the curve was cut as well, its segments were split differently, the line's end could fall just short of them, and the end no longer counted as a place on the curve. Trim at Crossings then removed the curve past that line, to the next crossing or the whole path. An open end of a path that lies within 0.001 pt of another path now meets it at the nearest point there, at any angle. Corners of a path and closed paths keep the exact test, and paths that lie along each other still don't cross. Trim at Crossings and its hover, Add Points at Crossings (with and without cut) and the Join tool's trim and join of crossing paths use this search. The params text of Trim at Crossings and Add Points at Crossings and docs/mcp.md say so.
This commit is contained in:
@@ -147,7 +147,7 @@ pub fn specs() -> Vec<CommandSpec> {
|
||||
"Add Points at Crossings",
|
||||
["Object", "Plug-ins", "Path Precision Tools"],
|
||||
None,
|
||||
"{cut?: bool (false: add anchors where the paths cross; true: also cut them there), selfCrossings?: bool (false: where a path crosses itself too, a curved segment that loops over itself included), ids?: [id…] (default: the selection)} where the paths under the objects cross one another, as one undo step; at most 10000 segments → {ids, crossings (anchors placed)}",
|
||||
"{cut?: bool (false: add anchors where the paths cross; true: also cut them there), selfCrossings?: bool (false: where a path crosses itself too, a curved segment that loops over itself included), ids?: [id…] (default: the selection)} where the paths under the objects cross one another, an open end that lies within 0.001 pt of another path counting as crossing it there, as one undo step; at most 10000 segments → {ids, crossings (anchors placed)}",
|
||||
has_selection,
|
||||
crossings
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user