victorliu / S4

Stanford Stratified Structure Solver - Electromagnetic simulator for layered periodic structures
http://www.stanford.edu/group/fan/S4/
GNU General Public License v2.0
128 stars 149 forks source link

polygon not in xy plane #97

Closed charey6 closed 3 years ago

charey6 commented 3 years ago

Hello, Thanks for this useful software! I'm trying to use the python extension to build a polygon pattern in my layer. There isn't any error, but when I look at the POVRAY image, it seems the pattern isn't in xy plane, rather it's in xz plane. Is it just a display issue or SetRegionPolygon has some issue? I would think it's more likely to be a display issue because rcwa won't work in the first place if the pattern is built in xz plane. Best, Rui

charey6 commented 3 years ago

I tested it by comparing the result of SetRegionRect and SetRegionPolygon where Vertice is set as a set of vertices of a rectangle. It seems the actual pattern is in the xy plane since the results are the same.

Best, Rui