Files
figcraft/crates
叶林橦 57e455dfa7 engine: fill rules as vector.fillRule and vector.reverseLoop
Two vector commands behind the fill-rule panel, split out so they can land
on their own (the panel is held for a maintainer design decision):

- vector.fillRule {ids? | id?, region?, rule: nonZero|evenOdd} sets the
  winding rule a filled area fills by (the whole layer when region is left out).
- vector.reverseLoop {ids? | id?, region, loop} turns one loop round, which is
  how a hole is made and unmade.

reverseLoop no longer swaps the stored ends of a segment a loop shares with a
neighbour: reversing the loop's list already flips this loop's traversal of the
shared segment, so flipping its segment would turn the neighbour's area round
too (bug called out in review). A new test builds two areas that share a segment
and checks the shared segment and the neighbour's fill are left alone.

Adds the commands to the Vector menu (catalog/parity), their locale labels, and
vector_fill_rule_tests (rule per area or whole layer, junk refused, shared segment).
2026-10-17 20:57:26 +08:00
..
2026-10-17 17:19:51 +07:00
2026-10-17 17:19:51 +07:00
2026-10-17 17:19:52 +07:00