Open sequoiap opened 2 years ago
Issue arise because center(centroid) of the prism has infinite position along z direction, if you will change mp.inf to some finite number everything will work fine.
This should fix it https://github.com/Yaraslaut/meep/commit/2eabb4fb34ff76816012a5751723118bab8cd738
Thanks @Yaraslaut, can you submit a PR?
When defining geometries, Prisms don't seem to build properly when offset with the "center" argument. The z-value changes to some weird and whacky value, even when the z-offset is zero. This has the effect of rendering weird shapes for the dielectric that don't match the defined Prism when using plot2D.
Script to reproduce the problem:
Result of plot2D (buggy on left, workaround on right):
OS Info: Red Hat Enterprise Linux Server Version 7.9 PyMeep Version: 1.23.0 Conda Version: 4.9.2