Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set grid size for union of GDSII shapes #773

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

lucas-flexcompute
Copy link
Collaborator

Without a grid size, the default from shapely is double precision, which leads to artifacts in the final geometry. Because the GDSII cordinates are already snapped to a grid, this should have no adverse effect unless the GDSII grid is finer than 1e-12. The usual default in GDSII files is for precision to be 1e-9 with unit 1e-6, that is a grid size of 1e-3, so the chosen value of 1e-12 should be quite safe.

Without a grid size, the default from shapely is `double` precision,
which leads to artifacts in the final geometry.  Because the GDSII
cordinates are already snapped to a grid, this should have no adverse
effect unless the GDSII grid is finer than 1e-12.  The usual default in
GDSII files is for precision to be 1e-9 with unit 1e-6, that is a grid
size of 1e-3, so the chosen value of 1e-12 should be quite safe.

Signed-off-by: Lucas Heitzmann Gabrielli <[email protected]>
@lucas-flexcompute lucas-flexcompute merged commit 16a6173 into pre/1.10.0 Mar 21, 2023
@tylerflex tylerflex deleted the lucas/gdsii_union branch May 16, 2023 14:19
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.

4 participants