jan
4c535e6564
return self from Text's scale_by and rotate
6 years ago
jan
e2b05d7c86
add fast approximate manhattanization function
7 years ago
Jan Petykiewicz
9308454ad4
allow cutting any shape, always require pyclipper
7 years ago
Jan Petykiewicz
87c2ef5948
use pyclipper for polygon cutting
7 years ago
Jan Petykiewicz
b3f99ee123
abs when thresholding raster for manhattanization
7 years ago
jan
83d163a102
fix typo
7 years ago
jan
f4b8f513d4
fix typos
7 years ago
jan
01395134ee
Also clean vertices before cutting
7 years ago
jan
a817bf6642
Remove debug code
7 years ago
jan
10cd0778b8
Add copy() method to Shape
7 years ago
jan
723944018e
add documentation to Polygon.cut()
7 years ago
jan
cea172e7f2
Make cut generate clean polygons
7 years ago
jan
4466198924
Add cut() function for polygon
7 years ago
jan
ffbaf8f4c4
Add manhattanization functionality
7 years ago
jan
3d52566016
Improve error handling
7 years ago
jan
ccfd0f7f4f
remove whitespace
7 years ago
jan
3d89cd42a0
further fixes to ellipse bounding box
7 years ago
jan
8256a540dc
Use polar angle for ellipse bounds
7 years ago
jan
b99509289a
Let layer be a tuple of ints (or just a single int like before)
7 years ago
jan
0a7c26bb08
No need to subclass 'object' in python3
7 years ago
jan
6cc6556e8a
typo fix
7 years ago
jan
434178c853
correctly preserve total arc angle during normalize
7 years ago
Jan Petykiewicz
ff76626e21
fix multiple bugs in arc and ellipse
7 years ago
jan
103e72628c
Remove extra spaces
8 years ago
jan
3a460a9296
Add Text shape
...
Rendered using freetype-py and matplotlib
Can eliminate the matplotlib dependency if I write my own bezier code,
but that's work (and I already use matplotlib...).
8 years ago
jan
2a20a540b9
remove extra spaces
8 years ago
jan
5bf486ac81
Add all files to repository
8 years ago