I'm trying to create a PCell with rounded or curved shapes. I know how to create rectangles and polygons using the rodCreateRect() and rodCreatePolygon() methods, but I wanted to know if there is an easier way to create a ROD object with curves, instead of using rodCreatePolygon() with a list of dozens or hundreds of points.
As far as I know the ROD functionality does not extend to non-rectlinear shapes. The following functions are probably what you need:
dbCreateEllipse( d_cellView txl_layerPurposel_bBox ) => d_ellipse / nil
Creates an ellipse.
dbCreateArc( d_cellView txl_layerPurposel_ellipse_bBox l_arc_bBox ) => d_arc / nil
Creates an arc.
There are also 'donut' shapes. Outside of these I don't know of other curved shapes you can create.
Hope this helps!
Also there are these two functions that might help, after you have created the ellipse or donut: dbConvertEllipseToPolygon( d_ellipse x_nSides ), dbConvertDonutToPolygon( d_donut x_nSides )
Thanks for the response. I actually found another way. If I create a polygon by drawing it out, I can create it as a ROD object. Then once I have all of the pieces I need, I can merge them together and then I have my finalized ROD object with curved features.