You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like it would be better to use define the volume as a bounding box for the vertices? In any case we should document precisely what this does. And we should emphasize that the final mp.Volume is a Cartesian box, not a polygon (see the confusion in #2905).
@smartalecH, I'm not 100% sure what the intended use of this feature is?
stevengj
changed the title
The 'vertices' argument of mp.Volume results in a smaller area than the coordinates in vertices
mp.Volume(vertices=...) is not a bounding box (& is undocumented)
Sep 9, 2024
In the modified example bent-waveguide.ipynb the 'vertices' argument has 6 elements:
bent-waveguide-1.ipynb
The span of the vertices array is -1.5 .. +1.5 in both X and Y directions.
However, the displayed box is has the width < 1:
mp.Volume should either throw an exception if the vertices argument isn't valid, or it should display it properly.
The above shape doesn't make sense.
The text was updated successfully, but these errors were encountered: