This function adds an approximation of a circle to a GDSII file stream. GDSII files do not support circles, so this is just a convenient function to create a polygon representation of a circle. Polygons can only be added in a GDSII cell, so this command can be called only if a cell has been created.

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT |

Syntax |
Description |

gdsaddcircle(f, layer, x, y, r, n) |
Adds an approximation of a circle on a layer with x-, y-coordinates, radius and number of polygon sides. |

Parameter |
Type |
Description |

f |
string |
a file handle that was previously opened with gdsopen. |

layer |
string or number |
string: a string of the form "layer:datatype" (for example "6:2") can be used to define the layer number and datatype for this structure from the GDSII file to import. Layer and datatype are integers.
number: defines the layer number and sets the datatype to be zero. |

x |
number |
x-coordinate of the center position in meters. |

y |
number |
y-coordinate of the center position in meters. |

r |
number |
radius of the circle in meters. |

n |
number |
number of sides to use in the polygon approximation. It is 64 by default. |

An example of script code is available on the gdsopen page.

See Also

gdsopen, gdsclose, gdsbegincell, gdsendcell, gdsaddpoly, gdsaddref, gdsimport