Files
vectorcraft/crates/engine
dotCooCoo 3e57f8311c Brushes: brush_targets drops repeated paths with a set instead of a linear search of its output
brush_targets checked each brushable node against every target it had
already collected, so P targets cost about P^2/2 comparisons. It now
keeps a HashSet of the ids it has pushed. The output vector is unchanged:
the same ids in the same walk order, each kept where it is first reached.

brush.apply, brush.remove, Expand on brushed paths and the brush library's
apply all collect their targets through it.

A unit test checks the exact result for guides, clipping paths, compound
members, nested compounds, repeated and overlapping roots and a missing
id, and compares it with a copy of the old collector.
2026-11-16 03:04:09 -08:00
..