yep
This commit is contained in:
parent
3b0c2c1a5f
commit
7d7afe1439
|
@ -8,7 +8,7 @@ def main():
|
||||||
print 'eliminating duplicate paths'
|
print 'eliminating duplicate paths'
|
||||||
d.paths = list(set([tuple(x) for x in d.paths]))
|
d.paths = list(set([tuple(x) for x in d.paths]))
|
||||||
print 'transforming paths'
|
print 'transforming paths'
|
||||||
# d = d.scale(1, -1)
|
d = d.scale(1, -1)
|
||||||
d = d.rotate_and_scale_to_fit(12, 8.5, step=90)
|
d = d.rotate_and_scale_to_fit(12, 8.5, step=90)
|
||||||
print 'sorting paths'
|
print 'sorting paths'
|
||||||
d = d.sort_paths()
|
d = d.sort_paths()
|
||||||
|
@ -18,7 +18,7 @@ def main():
|
||||||
d = d.simplify_paths(0.001)
|
d = d.simplify_paths(0.001)
|
||||||
print 'rendering paths'
|
print 'rendering paths'
|
||||||
d.render(line_width=0.25/25.4).write_to_png('out.png')
|
d.render(line_width=0.25/25.4).write_to_png('out.png')
|
||||||
# axi.draw(d)
|
axi.draw(d)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue