trisquel-icecat/icecat/third_party/rust/aa-stroke
2025-10-06 02:35:48 -06:00
..
.github/workflows icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
examples icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
src icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
.cargo-checksum.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
Cargo.toml icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
README.md icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00

Takes a path and produces a triangle mesh that corresponds to the antialiased stroked path.

The approach here is naive and only works for opaquely filled paths. Overlaping areas can end up with seams or otherwise incorrect coverage values.

Transforms with uniform scale can be supported by scaling the input points and the stroke width before passing them to the stroker. Other transforms are not currently (or ever?) supported.

TODO

  • using triangle strips instead of triangle lists
  • handle curves more efficiently than just flattening to lines
  • handle cusps of curves more correctly