It looks like you're new here. If you want to get involved, click one of these buttons!
I'm trying to learn to create a Honeycomb PCell based on the circle example we have in Ruby (I didn't find the same example in Python).
The Circle function in Klayout in Basic works differently than the one in the example.
If I choose Instance -> Basic Lib -> Circle, than to create an Hexagon I change the Number of points to "6".
The distance between the 2 edge of the Hexagon equals to the 2*Radius defined in the PCell.
In the case of the circle example in Ruby, the distance will be by default the 2 * Radius * sqrt(3/4) of the Hexagon.
My target is to write a Pcell where I can define the Width of the Honeycomb and the Thickness of the wall, then adding the number repetition in line and in column as parameters.
I'm thinking to use the difference between two Hexagon (circle of 6 points) of difference radius.
Any suggestion to how to write the code in Ruby or Python will be very appreciated.