-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OASIS reader doesn't update geometry-w/geometry-h to the bounding box of CTRAPEZOIDs #266
Comments
It's not 100% clear in this draft spec whether "the specified dimension" means the value of geometry-w/geometry-h that's used to size the CTRAPEZOID, or the actual bounding box size of the CTRAPEZOID, but KLayout interprets it as the bounding box size. |
Signed-off-by: Lucas Heitzmann Gabrielli <heitzmann@gmail.com>
Thanks for the report! You're right, we're missing a few modal variable updates for specific CTRAPEZOID types. I've added a fix in 64083fd. If you have an example where you see the error, would you mind double checking to make sure it works, @rocallahan ? |
I can't test it right now, but FWIW your code differs from KLayout's interpretation and I don't know who's right. E.g. for CTRAPEZOID types where the width of the bounding box is 2 x geometry-w, KLayout updates geometry-w to twice its incoming width, but your code doesn't. |
The changes I've added do the update to the modal dimensions in the cases when they were missing using the bounding box. Isn't that what KLayout also does? |
Yes, I think you're right, sorry about that. |
I don't have the actual spec at hand but the draft spec says:
As far as I can tell, the code does not do this. This can result in subtle errors in the geometry of shapes following certain CTRAPEZOIDs in the file.
The text was updated successfully, but these errors were encountered: