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

Fixed sign in compositeArea calc (polygons with holes now calc OK) #25

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

tomadams-ssf
Copy link

Calculation of Allowable Mixing Zone area (+Depomod/+Layout/Site.m) was incorrect. Pen layouts with large spacing can have "holes" within the overall area. The "compositeArea" function attempted to deal with this scenario but added the areas of the holes to (rather than subtracted them from) the area of the external polygon.

The code makes use of Matlab's "polyarea" function which gives the same result regardless of whether polygon nodes are specified clockwise or anticlockwise.

With the suggested change the mixing zone area should be correct and match with that given by Depomod itself.

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