-
Notifications
You must be signed in to change notification settings - Fork 15
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
Geometry_Engine: Adding methods required by IElement2D for PlanarSurface #2835
Geometry_Engine: Adding methods required by IElement2D for PlanarSurface #2835
Conversation
@BHoMBot check compliance |
@IsakNaslundBh to confirm, the following checks are now queued:
There are 561 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.
Good in general, see comments
Co-authored-by: Alessio Lombardi <alessio.lombardi@burohappold.com>
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.
Tested using test scripts, approving based on latest changes and discussion in comments
@BHoMBot check compliance |
@IsakNaslundBh to confirm, the following checks are now queued:
There are 130 requests in the queue ahead of you. |
@IsakNaslundBh just to let you know, I have provided a |
@IsakNaslundBh just to let you know, I have provided a |
@BHoMBot check null-handling |
@IsakNaslundBh to confirm, the following checks are now queued:
There are 127 requests in the queue ahead of you. |
@BHoMBot check compliance |
@IsakNaslundBh to confirm, the following checks are now queued:
There are 126 requests in the queue ahead of you. |
@BHoMBot check required |
@IsakNaslundBh to confirm, the following checks are now queued:
There are 135 requests in the queue ahead of you. |
The check |
The check |
The check |
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.
Re-approving after null handling fixes
@BHoMBot check ready-to-merge |
@IsakNaslundBh to confirm, the following checks are now queued:
There are 118 requests in the queue ahead of you. |
NOTE: Depends on
BHoM/BHoM#1390
Issues addressed by this PR
Closes #2812
Adding methods required for IElement2D.
For planar surfaces, the InternalElement2Ds will be returned as a set of new PLanarSurfaces, with ExternalBoundaries correpsonding to the InternalBoundaries of the host PlanarSurface. This is to fullfill the requirement that the openings must also be IElement2D, which is not the case for the closed curves. This workaround alows for the methods to behave as expected.
Potential at one point to add some form of Region class, that is like the PlanarSurface, but without any openings. There is no practical use for that class though, that can not be achieved with a PlanarSurface with no openings, more than clarity for methods like this. For now, I think this is the best solution forward, even it it at first might look slightly unintuitive.
Test files
https://burohappold.sharepoint.com/:f:/s/BHoM/EgJ3TMjsnNFBkM_sPjRKDewBcjco6-8OogC7UcSvS3lMKw?e=g8munn
Changelog
Additional comments
Reference to the wikipage outlining methods required by the IElement framework:
https://github.com/BHoM/documentation/wiki/IElement-required-extension-methods