Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

After gdspy boolean OR operation, help #235

Open
double666321 opened this issue Aug 29, 2023 · 1 comment
Open

After gdspy boolean OR operation, help #235

double666321 opened this issue Aug 29, 2023 · 1 comment

Comments

@double666321
Copy link

The graphics coordinates created by gdspy are clockwise, with the first coordinate at the lower left corner. After doing the boolean OR operation, the direction of the graphic coordinates has changed to counterclockwise, and the first coordinate has become the coordinate of a point in the middle. How to deal with it?
I need the first coordinate of the graphics after the operation to always be the lower left corner, and the direction is clockwise

@heitzmann
Copy link
Owner

Unfortunately we have little control over the starting coordinate after boolean or offset operations. You'll have to implement a helper function if you want to do that, by searching for the coordinate in the lowest left corner and changing the array start (you can use numpy.roll for that).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants