Skip to content
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

Slanted PolySlab implementation #258

Merged
merged 1 commit into from
Mar 24, 2022
Merged

Slanted PolySlab implementation #258

merged 1 commit into from
Mar 24, 2022

Conversation

weiliangjin2021
Copy link
Collaborator

More Validators for PolySlab to make sure the base polygon is valid
Validator to make sure no vertices crossing during extrusion with sidewall
Change "inside" function in geometry to include boundaries
Implement itersection_side for slanted PolySlab

Copy link
Collaborator

@tylerflex tylerflex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

impressive work. I am not able to follow all of the math, but the testing coverage seems good and I trust it all works. Thanks @weiliangjin2021 Can you just make sure to answer my few comments and make sure that the docstring descriptions have periods after them so everything looks the same in the docs?

Let's also make sure that we run a few notebooks that use poly slabs and ensure they are working properly when tidy3d is switched to this branch.

)

# remove duplicate neighbouring vertices, and orient in CCW direction
vertices = PolySlab._proper_vertices(val)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this gets applied to val, not val_np and then it seems vertices is never used besides validation (the val_np is returned). Is this expected?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is expected. They are only used in validation.

@tylerflex
Copy link
Collaborator

feel free to rebase and merge when you think it's well tested on some of the notebooks. For example, add a slight sidewall to GDSImport.ipynb, ParameterScan.ipynb or other notebooks and verify it looks ok. Thanks

@weiliangjin2021 weiliangjin2021 force-pushed the weiliang/sidewall branch 6 times, most recently from aa64cc5 to aa25add Compare March 23, 2022 20:30
More Validators for PolySlab to make sure the base polygon is valid
Validator to make sure no vertices crossing during extrusion with sidewall
Change "inside" function in geometry to include boundaries
Implement itersection_side for slanted PolySlab
@tylerflex tylerflex merged commit 3bcfa27 into develop Mar 24, 2022
@tylerflex tylerflex deleted the weiliang/sidewall branch March 24, 2022 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants