-
Notifications
You must be signed in to change notification settings - Fork 622
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
add epsilon colorbar for plot2D #2286
Comments
I have been attempting to create 3D scenes of 3D Sim objects. I have a nearly ready solution for this, I just need to work out how to make the cuboids representing the PML boundaries transparent in trimesh. This is a known issue with trimesh, see: mikedh/trimesh#1372, |
Meep's current plot3D() function is broken, due to issues with mayavi.
I managed to create a rudimentary 3D representation of the Simulation object using vispy. I need to add the source planes and monitor planes, and fine tune the looks. Sim object for an MMI1X2: |
How about using pyvista for 3D plotting? I don't have much experience with it but it looks like it has support for opacity, plus it can import hdf files so it would integrate well with meep's default output file format. Also I just put in a PR (#2289) for the colorbars so let me know how that works for you! |
|
@SkandanC hey, this is pretty cool! |
Thank you! I think this could be useful to visualize the adjoint optimization simulation objects as well. |
@joamatab do you think this should be closed? Both the colorbars and 3d visualization PRs have been merged. |
How could we add an epislon or refractive index colorbar for plot2D?
See for example the colorbars here
https://gdsfactory.github.io/gdsfactory/notebooks/plugins/tidy3d/00_tidy3d.html
Also we could improve Meeps' 3D visualization using trimesh?
https://gdsfactory.github.io/gdsfactory/notebooks/plugins/meep/001_meep_sparameters.html#Visualizing-the-3D-Geometry
The text was updated successfully, but these errors were encountered: