gdstk icon indicating copy to clipboard operation
gdstk copied to clipboard

read_gds AREF parsing problem

Open WesYu opened this issue 9 months ago • 0 comments

https://github.com/heitzmann/gdstk/blob/b4d31f82f19f784731b516c44b81abee2567bc49/src/library.cpp#L1148C2-L1161 The first branch of the referenced code assumes that when there's no rotation or reflection, v1 and v2 are orthogonal, and parallel to the x and y axis respectively, thus ignoring their y and x coordinates respectively. Simply reading the file in the first pic and then writing results in the file in the second pic:

Image Image

I understand that in some cases row and column vectors like in the first pic are not allowed, as is indicated in the screenshot. But isn't it up to the user to decide, instead of depending on whether rotation or reflection is present? As far as I know these two are unrelated with respect to aref in gdsii.

WesYu avatar Mar 12 '25 02:03 WesYu