nicolasayotte / MatlabGDSPhotonicsToolbox

This is a Matlab library of functions to facilitate the design of Photonics Integrated Circuits GDS layout.
MIT License
76 stars 21 forks source link

Circles #4

Open cgutie22 opened 1 year ago

cgutie22 commented 1 year ago

I am having issues creating a circle using this library. How do I put a circle into Klayout using this library?

nicolasayotte commented 1 year ago

gdsii_arc can make full circles

https://github.com/ulfgri/gdsii-toolbox/blob/d0a0569f3136a1a99d3b49845cf3bb1198bd5c18/Elements/gdsii_arc.m#L4

cgutie22 commented 1 year ago

Thank you,

Looking at the code and provided examples, you do not seem to have any structures that use gdsii_arc.

1) Are there any other examples where someone used gdsii_arc? 2) To my understanding, the gdsii_arc saves a gdsii struct with points, and cannot plot the same way the makerect command does. Is there a way to plot the points from the gdsii_arc?

nicolasayotte commented 9 months ago

To answer @Automachef : if you look in Functions/Basic/PlaceArc.m you will see that use

gds_element('boundary', 'xy', points)

You can essentially give a series of point coordinates x,y to trace any element shape your might want.