jan
e4545bfa30
use is_scalar for checking if layer is a tuple
6 years ago
jan
3e06214b7e
Add recursive "apply()" helper to pattern
6 years ago
jan
4c535e6564
return self from Text's scale_by and rotate
6 years ago
jan
eae57f7158
add set_bit
6 years ago
jan
3d7df45c2b
fix get_bit docs
6 years ago
jan
e2b05d7c86
add fast approximate manhattanization function
7 years ago
Jan Petykiewicz
fca3d8fda1
move code to new location
7 years ago
jan
2ca27b0792
fix typo
7 years ago
jan
0fd0e259aa
Merge branch 'master' of mpxd.net:jan/masque
7 years ago
jan
bc5d4f62d8
Test writing to gds in ellip_grating
7 years ago
jan
b7b0da7432
Allow writing a list of patterns to gds (multiple topcells)
7 years ago
jan
c451e93df0
Add option to check for invalid polygons when reading gds
7 years ago
jan
6aa1787ba0
add comment specifying what gdsii lib is used
7 years ago
Jan Petykiewicz
7396e83f35
bump version number
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
934bfcd74e
Clean up type info
7 years ago
jan
ccfd0f7f4f
remove whitespace
7 years ago
jan
583dd7b018
allow caller to specify gdsii logical unit
7 years ago
jan
3b3ee216c2
add missing import
7 years ago
jan
3d89cd42a0
further fixes to ellipse bounding box
7 years ago
jan
85e2c662cc
fix incomplete commit
7 years ago
jan
8256a540dc
Use polar angle for ellipse bounds
7 years ago
jan
fdd18ca7d8
add functions for reading/writing tuple-valued layers to gds
7 years ago
jan
1127242aa0
fix typo
7 years ago
jan
dcf34536ad
Improve docs for gdsii output
7 years ago
jan
bf1cabe0b0
Let gdsii output handle list-specified errors
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
2c159f2798
remove extra polygonize
7 years ago
Jan Petykiewicz
542da868c9
add TODO section
7 years ago
Jan Petykiewicz
f25f6966e0
add example showing how to make an elliptical grating
7 years ago
Jan Petykiewicz
ff76626e21
fix multiple bugs in arc and ellipse
7 years ago
jan
113671e591
bump version
8 years ago
jan
d355d84f6d
fix gds name mangling in cases with fractional dose
8 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