-
Notifications
You must be signed in to change notification settings - Fork 13
Architecture_Engine: Geometry() query for BuildersWork.Opening refactored to return Point #2705
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
Conversation
Not overly concerned by a change as long as you have checked through all use cases of the class. More wondering then about why an opening is an IElement0D in the first place? |
Thanks @IsakNaslundBh. That is the question I was asking myself when working on the original oM PR: BHoM/BHoM#1258. The main rationale behind implementing One could argue that it could also be 1D (taken its depth into account) or 2D (as windows/doors etc.). However, in the cases I can foresee now, there is no need for more than a point location from the code perspective, while turning |
Yeah, thinking a bit more about it myself, it is quite analogous to the Bar class (a curve element with a swept profile) so can sort of understand the ifs and whys of it. Then, I think the change is fine if you have checked through that it does not break anything (as mentioned before) and if it can be tested by someone who has used the class. |
Yeah, agreed - will make sure this gets verified before merging. This PR is a link in a larger chain of PRs to be raised today (still polishing the code), so more info, test files etc. will be added. Thanks! |
@pawelbaran just to let you know, I have provided a |
@pawelbaran just to let you know, I have provided a |
1 similar comment
@pawelbaran just to let you know, I have provided a |
@pawelbaran just to let you know, I have provided a |
@pawelbaran just to let you know, I have provided a |
@pawelbaran just to let you know, I have provided a |
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 👍
@pawelbaran to confirm, the following checks are now queued:
There are 11 requests in the queue ahead of you. |
@pawelbaran to confirm, the following checks are now queued:
There are 27 requests in the queue ahead of you. |
@pawelbaran just to let you know, I have provided a |
@pawelbaran just to let you know, I have provided a |
cb0c6d0
to
6f3e782
Compare
@BHoMBot check required |
@FraserGreenroyd to confirm, the following checks are now queued:
There are 2 requests in the queue ahead of you. |
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
1 similar comment
@pawelbaran to confirm, the following checks are now queued:
|
@BHoMBot check ready-to-merge |
@FraserGreenroyd to confirm, the following checks are now queued:
There are 2 requests in the queue ahead of you. |
Issues addressed by this PR
Closes #2704
Test files
It is a simple property return, so no tests should be needed.
Changelog
Additional comments
This is a breaking change (different return type compared to the original version of the method) - this cannot be avoided taken the nature of the bug (
Geometry()
has to returnPoint
for all types that implementIElement0D
interface). Luckily, I do not think this type has been heavily used so far (if at all), taken it does not provide any interop features atm.@IsakNaslundBh please shout if you are concerned about it and you have ideas how to lower the risk I introduce with this change.