Commit Graph

63 Commits (2259e7987bbd86c26230f794a3493a82bf138a66)

Author SHA1 Message Date
Jan Petykiewicz 2259e7987b don't rename shape.to_polygons() args 5 years ago
jan dcd8324eb4 Use to_polygons() for bounds calculation for simple path shapes 5 years ago
Jan Petykiewicz 75b42f6b63 Use normalize_mirror for all 2d-to-1d mirroring 5 years ago
Jan Petykiewicz ca80b14ee4 Fix text get_bounds
was addressing list using numpy slices
5 years ago
Jan Petykiewicz a154555902 Add TODO noting that polygon mirroring could be normalized 5 years ago
Jan Petykiewicz f00d283c56 Add missing imports 5 years ago
Jan Petykiewicz 032c410b43 Add mirror_x to extrinsic properties
It's not implemented for Polygon shapes, since I haven't thought about
how to normalize those for reflection yet
5 years ago
Jan Petykiewicz 2e54cf1080 initialize identifier for text shapes 5 years ago
Jan Petykiewicz 16c6bfc70a Cosmetic changes to argument lists 5 years ago
Jan Petykiewicz 38f64f7c62 Use __slots__ for class members
Also use the other sort of type hints for instance variables
5 years ago
Jan Petykiewicz a461446059 Custom deepcopy() implementations to help speed things up 5 years ago
Jan Petykiewicz 94410dffc9 Fix clockwise (to-perp) path bends 5 years ago
Jan Petykiewicz 2909b25fd7 Missing args for commit bc43be48bc (cap_extensions) 5 years ago
Jan Petykiewicz a44a7c176e Add type hints 5 years ago
Jan Petykiewicz bc43be48bc Implement SquareCustom end-caps and gds output 5 years ago
Jan Petykiewicz 9ab1372c7b Allow shapes to carry an arbitrary identifier (Tuple) 5 years ago
Jan Petykiewicz ee6699a7de fix alternate polygon constructors 5 years ago
Jan Petykiewicz 783c0c0844 Add support for gds paths 5 years ago
Jan Petykiewicz d53c9487ff Comment and error-checking fixes 5 years ago
Jan Petykiewicz 8fe8bbd655 Normalization-related fixes 5 years ago
Jan Petykiewicz c6fac19fe0 Set standard constructor arg order and add `rotation` and `mirrored` args where reasonable 5 years ago
Jan Petykiewicz 8dfb6d4440 Move vertex-cleanup functions to utils and generalize for non-closed paths 5 years ago
Jan Petykiewicz e3586a4574 fix variable names (manhattanize_fast fixes) 5 years ago
Jan Petykiewicz c6830abe22 Fix corners in manhattanize_fast 5 years ago
jan bc557a54b7 fix typo in comment 5 years ago
jan eb6a5d8e8c Add shapes.Polygon.rect() for simpler construction of various axis-aligned rectangles 6 years ago
jan ef305cbac9 Fix syntax 6 years ago
Jan Petykiewicz 5bce2005b6 Add docstring for manhattanize_fast 6 years ago
Jan Petykiewicz ab483fc9d4 Remove pyclipper dependency; remove shape.cut() 6 years ago
Jan Petykiewicz df5c61f1d4 Clarify that rectangle/square is centered on the origin
Eventually, should allow arbitrary limit combination (rather than center
+ width)
6 years ago
Jan Petykiewicz b295c318a9 Fix arc bounding box calculation 6 years ago
jan f3115baabe Add get_cap_edges() 6 years ago
jan 832e3b46fa Add general angle-to-parameter helper function
and improve accuracy of to_polygons
6 years ago
jan 86068102d9 Clarify that layer can be a tuple 6 years ago
jan 6bafaaf4fc Fix typo in arc docs 6 years ago
jan d5a255a9d7 Add mirror() to shapes
Might need to fix ordering on Text.to_polygons()
6 years ago
jan 4c535e6564 return self from Text's scale_by and rotate 6 years ago
jan e2b05d7c86 add fast approximate manhattanization function 6 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