diff options
| author | Lex Neva <github@lexneva.name> | 2016-11-12 14:05:09 -0500 |
|---|---|---|
| committer | Lex Neva <github@lexneva.name> | 2016-11-12 14:05:09 -0500 |
| commit | 1fedbc11b5cd4801ffd04e2e6b9fb93179de967c (patch) | |
| tree | 4fbbced580f9d11b37d48e56463b715a4abc82ca /embroider.py | |
| parent | 055eb63bec189a04a0e42dfa377a4b19b275a870 (diff) | |
clean up PyEmb.Point
Diffstat (limited to 'embroider.py')
| -rw-r--r-- | embroider.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embroider.py b/embroider.py index 81722cbd..aba43833 100644 --- a/embroider.py +++ b/embroider.py @@ -311,8 +311,8 @@ class Fill(EmbroideryElement): rows = [] while start < end: - p0 = center + normal.mul(start) + direction.mul(half_length) - p1 = center + normal.mul(start) - direction.mul(half_length) + p0 = center + normal * start + direction * half_length + p1 = center + normal * start - direction * half_length endpoints = [p0.as_tuple(), p1.as_tuple()] grating_line = shgeo.LineString(endpoints) @@ -711,7 +711,7 @@ class Stroke(EmbroideryElement): along = (p1 - p0).unit() # vector pointing to edge of stroke width - perp = along.rotate_left().mul(stroke_width * 0.5) + perp = along.rotate_left() * (stroke_width * 0.5) if stroke_width == 0.0 and last_segment_direction is not None: if abs(1.0 - along * last_segment_direction) > 0.5: |
