-
Notifications
You must be signed in to change notification settings - Fork 2
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
Offset openings #375
Offset openings #375
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry @MajaLindroth , slight change requested to the error message!
XML_Engine/Create/XMLSettings.cs
Outdated
{ | ||
if (offsetDistance >= 0) | ||
{ | ||
BH.Engine.Reflection.Compute.RecordWarning("Please set offset distance to be a negative number"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why should the offset distance be a negative number?
I agree it should be, but the user might not - I would recommend a better error message such as:
Offset distance should be negative to offset the openings inwards, away from the edges of the host panel and ensuring opening area is less than the host panel area. A positive offset will result in openings being larger than the host panel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
NOTE: Depends on
Issues addressed by this PR
Closes #243
Openings will be offset if they are bigger than or equal to the size of the host panel. Added a setting to XML Settings to change the distance.
Test files
Test file
Changelog