chiark / gitweb /
Emit open contours starting at the beginning.
authorBen Harris <bjh21@bjh21.me.uk>
Tue, 8 Aug 2017 22:23:55 +0000 (23:23 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 8 Aug 2017 22:23:55 +0000 (23:23 +0100)
commit051d1c662ca543127ec5602a89811732eb8effad
tree342e92da534d60a9a46918b9f097ba7c17ec35b7
parent82d22a52894b75113b0dc5f938eea467ab37343a
Emit open contours starting at the beginning.

Before this change, emit_path() would emit contours starting at
whichever point was earliest in the points array.  That was fine for
closed contours, but it meant the open contours tended to be emitted
in multiple parts.  Now it first searches for start points of open
contours and emits those, and then does what it used to do to emit the
remaining (closed) ones.  This has no effect (other than to slow
things down a bit) for fully-closed paths like those in outline
versions of Bedstead, but it makes the stroked ones much cleaner.  Now
a contour can only end at a tip or at a 3-way junction.
bedstead.c