Skip to content

Improve the GDS export of topology optimized designs#62

Draft
QuentinWach wants to merge 3 commits intomainfrom
export_design
Draft

Improve the GDS export of topology optimized designs#62
QuentinWach wants to merge 3 commits intomainfrom
export_design

Conversation

@QuentinWach
Copy link
Copy Markdown
Owner

No description provided.

…ty in `4_topo.py`

- Adjusted `points_per_wavelength` to 9 and reduced `STEPS` to 35 for improved simulation speed.
- Implemented saving of the final permittivity grid as a numpy array for future use.
- Added functionality to export the optimized design to a GDS file, including contour extraction of the optimized region.
…py` script

- Updated `4_topo.py` to use `gdspy` for GDS file generation, improving the export process.
- Introduced padding for the permittivity grid to ensure contours close at boundaries.
- Created a new script `npz_to_gds.py` for converting `.npz` files to `.gds`, enhancing usability.
- Improved contour extraction and polygon generation for optimized designs.
- Introduced `export_gds` and `export_grid_gds` functions for exporting designs and permittivity grids to GDS files.
- Updated `RegularGrid` and `Design` classes to include methods for GDS export.
- Enhanced `__init__.py` files to expose new I/O functions for easier access.
- Refactored `4_topo.py` and `npz_to_gds.py` to utilize the new export functions, improving usability and code clarity.
@QuentinWach QuentinWach changed the title Fix the .vdb export for Blender Improve the GDS export of topology optimized designs Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant