mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 22:21:59 +00:00
With Size 0, Roughen moved no point but still replaced each segment with its Detail's points joined by straight lines (Corner) or by a smoothed curve through them (Smooth), so a curved path lost its shape. At Size 0 each segment is now split at the Detail spacing into pieces of equal length on the segment itself, with `pathtools::insert_at`: a straight segment gets corner points without handles, and a curve gets smooth points whose handles follow it. The path keeps its outline with Smooth or Corner points alike. The params text of `distort.roughen` describes size 0. `insert_at` now counts the anchors added before each returned mark in one pass. It counted them again for every split segment, which took quadratic time on a path with many split segments. Its results are unchanged. Existing documents with a Roughen of Size 0 on a curved path, or with Smooth points, draw differently. This is VectorCraft's own rule. What Roughen does is described in https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/distort-and-transform-effects-in-illustrator.html