mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 11:51:05 +01:00
- The searches for all the selected objects share one limit of 134,217,728 distances from a point to an edge, as Add Bounding Circle shares its splits, and each cell is measured only when the limit has room for it. One search keeps at most 1,048,576 cells waiting. The pathops crate adds inscribed_circle_within for a shared budget. - The search stops once its best center is within the precision of half the box's narrower side, so a long rectangle ends at its first cells, and cells that cannot beat the best center are no longer queued. - A fill much smaller than the precision still gets a circle: the search keeps splitting until it finds a center inside the outline. - The precision also follows the box of the area the fill rule leaves. - Flattening stops at the first curve past the edge limit. An outline that flattening closes up, or whose center lands outside the curves, is flattened up to four times, 16 times finer each time; one it still cannot resolve is too complex to measure, not empty. Areas are summed from each contour's own first point. - An outline with more than 262,144 anchors in its filled subpaths is refused before it is resolved. - A selected layer is refused like any other object that is not a path, and inside an isolated compound path the circles join it, as Tangent Circle's do. - The menu item uses a named constant, and a UI test checks that it runs the command with no dialog and selects a new live circle in each selected shape, as one undo step. - The params text and docs say that the 0.02 pt bound holds before the circle is drawn 0.03% smaller, that a shape under 10 pt across is measured to a five-hundredth of its narrower side, when long curves are flattened more coarsely, and that edges can move by 1e-6 pt as in the other path operations.