[perimeterPen] Update check for cusps

If p1 coincides with p0 or p2, we still can use the lineTo()
code.
This commit is contained in:
Behdad Esfahbod 2016-11-08 16:39:38 -08:00
parent 7915a45ddf
commit 25083502e4

View File

@ -51,7 +51,7 @@ class PerimeterPen(BasePen):
return
origDist = _dot(n,d0)
if origDist == 0.:
if _dot(d0,d1) > 0:
if _dot(d0,d1) >= 0:
self._lineTo(p2)
return
assert 0 # TODO handle cusps