Skip to content

Enhance mesh visualization with solid style and names to all interface surfaces#40

Merged
vvahidd merged 6 commits intogdsfactory:mainfrom
EpsilonForge:meshviz_solid_surfaces
Mar 5, 2026
Merged

Enhance mesh visualization with solid style and names to all interface surfaces#40
vvahidd merged 6 commits intogdsfactory:mainfrom
EpsilonForge:meshviz_solid_surfaces

Conversation

@mdmaas
Copy link
Copy Markdown
Contributor

@mdmaas mdmaas commented Feb 27, 2026

Adds a style="solid" option to plot_mesh() that renders coloured surfaces per physical group (vs the existing wireframe mode). Includes a transparent_groups parameter to fade out enclosing volumes like the absorbing boundary.

To support this, the mesh pipeline now assigns a physical group to every surface produced by volume fragmentation — named "vol1__vol2" for shared interfaces (e.g. "air__substrate") or "vol__None" for exterior faces. Previously only conductors, ports, and the absorbing boundary had named surfaces.

This is good for debugging an existing geometry. For example, we now clearly see that we have both "air" and "airbox" volumes, and a substrate which is larger than the traces -- this might be the root cause of #16. Importantly, this is also blocking the addition of waveports.

mesh_view

@vvahidd vvahidd merged commit 4018dd9 into gdsfactory:main Mar 5, 2026
1 check 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.

3 participants