Skip to content

Commit

Permalink
remove unused imports
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Schmid <tom@lfence.de>
  • Loading branch information
rckTom committed Sep 6, 2021
1 parent 8890f37 commit 5916f83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ChutePattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ def get_pattern(self):
surface = cairo.RecordingSurface(cairo.CONTENT_COLOR_ALPHA, cairo.Rectangle(0, 0, mm_to_pt(document_width), mm_to_pt(document_height)))
ctx = cairo.Context(surface)
ctx.save()
ctx.set_line_join(cairo.LINE_JOIN_ROUND)
ctx.set_line_cap(cairo.LINE_CAP_ROUND)
ctx.push_group()
ctx.scale(mm_to_pt(1), mm_to_pt(1))
ctx.save()
Expand All @@ -181,7 +183,8 @@ def get_pattern(self):
draw_grid(ctx, (0,0), 10, 1, document_height, document_width)

#draw seam allowance
ctx.translate(document_width/2, -pattern_extend[1] + (document_height/2 - pattern_height/2))
ctx.translate(-pattern_extend[0] + (document_width/2 - pattern_width/2),
-pattern_extend[1] + (document_height/2 - pattern_height/2))
ctx.move_to(u[0], l[0])
for x,y in zip(u, l):
ctx.line_to(x, y)
Expand Down
1 change: 0 additions & 1 deletion chutemaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import math

import cairo
import matplotlib.pyplot as plt
import numpy as np
from numpy.lib.polynomial import poly

Expand Down

0 comments on commit 5916f83

Please sign in to comment.