mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-10 23:01:02 +00:00
Create Gradient Mesh, a Mesh tool click and Object > Expand of a gradient to a mesh gave each border edge one cubic fitted between two mesh points and picked the corners from the bounding box, so the border cut off corners and curves: 49 pt off a five-point star, 54 pt off a notch. - The border follows the outline of the largest subpath by length; border points sit on it and an edge with no anchor inside is the exact piece of its segment. - Where no single cubic follows a run within 0.1 pt (a thousandth of the size on a small outline), a mesh line goes through an anchor, the sharpest corner first; at most 256 lines each way. Rectangles and ellipses keep the rows and columns asked for. - Smooth runs keep their end tangents; border handles are no longer made collinear. - To Center and To Edge highlight placement accounts for the extra lines (for_path_shaded, also used for gradient fills). - Non-finite points give no mesh; a degenerate outline keeps the old bounding-box mesh. Holes of a compound path are still left out, as before. Docs: docs/target-app-parity.md.