It looks like you're new here. If you want to get involved, click one of these buttons!
I have a small problem. I want to merge all shapes of a certain layer of a cell. All shapes are already polygons. I am not sure how to do it, since you usually need an array of polygons for the merge command. The only way I know of to adress the shapes needed would be:
cell_name.each_shape(layer_name) do |shape| xxx end
But with this method I dont know how to proceed.
Another idea I tried was with the ShapeProcessor. It looks like:
processor = RBA::ShapeProcessor.new processor.merge_to_polygon(cell_name.shapes(layer_name), 0, true, false)
The last command needs an array as argument. But the "cell.shapes()" command should give us a list of shapes according to the class documentation. Isn't a list of shapes equivalent to the required array?
Thanks for your help in advance!