Graphite
Graphite copied to clipboard
Bevel path node
Add a node to bevel some vector data.
For each point in a path that is connected to exactly 2 segments:
- If the tangent of the ends of the two segments are scalar multiples, discard.
- Otherwise, offset by the user specified amount into both segments and insert new points.
- Delete the original point.
- Connect the two new points with a straight line segment.
Not in scope:
- Cleaning up paths where bevels overlap.
- Bevelling only particular points (possibly selected in the viewport by the user).
- Dealing with mesh paths (beyond ignoring points with >2 segments).