Skip to content

Implement surface booleans via occ.cut()#79

Merged
vvahidd merged 1 commit intogdsfactory:mainfrom
EpsilonForge:surface_booleans
Apr 10, 2026
Merged

Implement surface booleans via occ.cut()#79
vvahidd merged 1 commit intogdsfactory:mainfrom
EpsilonForge:surface_booleans

Conversation

@mdmaas
Copy link
Copy Markdown
Contributor

@mdmaas mdmaas commented Mar 30, 2026

For complex surfaces with holes like what we have in the transmon example, the current implementation was adding surfaces with loops. However, OCC wasn't performing any cuts, so for robustness we should do the cuts explicitly.

This fixes the meshing issues in the transmon example, which was only showing a large superconductor region:

transmon_mesh

@mdmaas mdmaas mentioned this pull request Mar 31, 2026
@nikosavola nikosavola self-requested a review April 1, 2026 20:19
@mdmaas mdmaas force-pushed the surface_booleans branch from a49f127 to d53e502 Compare April 9, 2026 17:30
@mdmaas mdmaas requested review from joamatab and vvahidd as code owners April 9, 2026 17:30
@vvahidd vvahidd merged commit 527a542 into gdsfactory:main Apr 10, 2026
4 checks passed
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.

2 participants