write_layout¶
- photonforge.write_layout(filename, *components, paths_to_polygons=False, fracture_limit=0, compression_level=9, library_name='LIBRARY')¶
Export this component as a GDSII or OASIS file.
The layout format is defined by the file name extension: “.gds” or “.oas” for GDSII or OASIS files, respectively.
- Parameters:
filename – Output file name.
*components – Components to write to the layout file.
paths_to_polygons – If
True
, all :class:Path
structures will be stored as polygonal contours.compression_level – Level of compression of the file. Disabled if set to 0. Maximal compression level is 9. (OASIS only)
fracture_limit – Polygons with a number of vertices above this limit will be fractured into multiple polygons. The limit is ignored if not above 4. (GDSII only)
library_name – Name of the library. (GDSII only)
See also