-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for
edge-distances:endpoints
Ref: edge-distances: endpoints #3157 Notes: - This change allows bundled bezier edges, unbundled bezier edges, and segment edges to use `edge-distances: endpoints`. - The documentation has been updated accordingly. - The change is minimally invasive by making a new function for the adjustment. - The adjustment alters the midpoint and the inverted normal vector used for middle-point calculations (e.g. bezier control points). - Limitation: The adjustment must happen at the middle-point phase, rather than the endpoint phase. The endpoint phase happens after the middle point phase, because many edges have automatic endpoints based on the middle points. This means that the endpoint calculations would be duplicated for `edge-distances: endpoints` edges. In future, this could be optimised if needed. - Limitation: For a bundled bezier, this implementation assumes that all beziers in the bundle have the same endpoint. That doesn't seem like a valid use case, anyway.
- Loading branch information
Showing
3 changed files
with
75 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters