


{"id":184485,"date":"2021-07-08T07:40:42","date_gmt":"2021-07-08T07:40:42","guid":{"rendered":"\/forum\/forums\/reply\/184485\/"},"modified":"2021-07-08T07:43:11","modified_gmt":"2021-07-08T07:43:11","slug":"184485","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/184485\/","title":{"rendered":"Reply To: What is the relationship between .svg file and layoutpolygon\uff1f"},"content":{"rendered":"<p>Hi<br \/>\n@<a href=\"\/forum\/profile\/GWANG\" target=\"blank\">GWANG<\/a>\u00b4\u255d\u00ee<br \/>\nThank you very much for your reply. As what you said, the numbers  64 is cotroling the size of  layout size shown in svg file. <br \/>\nI tried to modify the polygons_vertices, then .svg file will be correct for one pcell, but .svg file is still mismatched for annother pcell.<\/p>\n<p>polygons_vertices = [[[round((vertex.x &#8211; x) * 100. \/ scale  + s1 \/ 4+0.75*s1\/10, 2), round((y &#8211; vertex.y) * 100. \/ scale  + s2 \/ 4-s2\/10, 2)]<br \/>\n                      for vertex in p.each_point()] for p in [p.to_simple_polygon() for p in polygons]]<\/p>\n<p>WHat is wrong with this? Ccould you try to explain this code? I don;t know  the way of .svg file shown in lumerical interconnect.<\/p>\n","protected":false},"template":"","class_list":["post-184485","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/184485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/184485\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=184485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}