It looks like you're new here. If you want to get involved, click one of these buttons!
Hello,
It seems K-Layout removes colinear points in polygons. I'm reading in external point arrays and creating the polygons like this:
p1=SimplePolygon.new(pts,true)
_cell.shapes(lyrnum).insert(p1)
This works fine, but some of the points are removed if the density is too high and the radius of the edges is too large.
Is there a way to remove/skip this processing? It messes up algorithms trying to extract the 'spine' of the polygon to calculate the path length and local radius of the waveguide patterns we make.
Thanks,
Dave
Comments
Hi Dave,
as you are passing "true" to the "raw" argument of "SimplePolygon.new" this should already be the case.
Here is an example:
Such shapes also survive writing to GDS.
Do you have a specific example?
Note, that coordinates are always stored as integers as multiples of the database unit. These integers are 32 bit wide unless you compile in 64 bit coordinate support. This limits the accuracy of the representation and also limits the overall coordinate range. Please keep this in mind when trying to extract information from the geometries stored.
Matthias