-
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: Support closed planar curve types #2841
Geometry_Engine: Support closed planar curve types #2841
Conversation
…and BoundaryCurve Also, significant amount of missing descriptions added
…ate on the new interfaces
Following changes done to avoid unneccesary calls to BooleanUnion, as that changes the curve type to PolyCurve, meaning and performance gain from using BoundaryCurve is lost. Logic used for outer and inner curves is: - If one curve, just use centroid and area from it - If more than one curve, cluster (dbscan) by overlapping boundingboxes. For each cluster, then if single curve, just use it, if multiple curve, use boolean union, and then loop through the curve.
@BHoMBot check documentation-compliance |
@IsakNaslundBh to confirm, the following checks are now queued:
There are 121 requests in the queue ahead of you. |
Also, adding method for Ellipse returning empty list
@BHoMBot check documentation-compliance |
@IsakNaslundBh to confirm, the following checks are now queued:
There are 117 requests in the queue ahead of you. |
@BHoMBot check documentation-compliance |
@IsakNaslundBh to confirm, the following checks are now queued:
There are 116 requests in the queue ahead of you. |
@IsakNaslundBh to confirm, the following checks are now queued:
There are 116 requests in the queue ahead of you. |
@BHoMBot check null-handling |
@IsakNaslundBh to confirm, the following checks are now queued:
There are 110 requests in the queue ahead of you. |
@BHoMBot check unit-tests |
@FraserGreenroyd to confirm, the following actions are now queued:
|
@BHoMBot check unit-tests |
@FraserGreenroyd to confirm, the following actions are now queued:
|
@BHoMBot check unit-tests |
@FraserGreenroyd to confirm, the following actions are now queued:
There are 1 requests in the queue ahead of you. |
@BHoMBot check unit-tests |
@FraserGreenroyd to confirm, the following actions are now queued:
There are 2 requests in the queue ahead of you. |
@BHoMBot check unit-tests |
@FraserGreenroyd to confirm, the following actions are now queued:
There are 6 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.
Approving based on:
- Latest code changes
- Test scripts.
I am getting the same results of my previous review and I am satisfied with the answers provided in #2841 (comment), in particular on the precision "fail". The visualisation issue is still there but I am convinced it must be something on my end and not related to this PR.
@IsakNaslundBh just to let you know, I have provided a |
@IsakNaslundBh just to let you know, I have provided a |
@IsakNaslundBh just to let you know, I have provided a |
@BHoMBot check code-compliance |
@IsakNaslundBh to confirm, the following actions are now queued:
|
The descriptions missed and flagged by the documentation compliance have intentionally been left out due to #2840 . Descriptions to be added when the method is fixed. Will dispense the check for this PR, which has been agreed in call with @FraserGreenroyd . |
FAO: @FraserGreenroyd The check they wish to have dispensation on is documentation-compliance. If you are providing dispensation on this occasion, please reply with:
|
@BHoMBot this is a DevOps instruction. I am authorising dispensation to be granted on check ref. 8612058397 |
1 similar comment
@BHoMBot this is a DevOps instruction. I am authorising dispensation to be granted on check ref. 8612058397 |
@IsakNaslundBh I have now provided a passing check on reference |
NOTE: Depends on
BHoM/BHoM#1393
Issues addressed by this PR
Closes #2803
Adds support for the new Polygon and BoundaryCurve curves.
Change the signature of some of the more heavy methods to accept IPolyline and IPolyCurve instead of Polyline and PolyCurve, to enable passing Polygons and BoundaryCurves to them instead.
Update Centroid method for lists of curves to avoid calling BooleanUnion if it can be avoided.
Test files
https://burohappold.sharepoint.com/:f:/s/BHoM/EkuLDyGrA2FHi4MlPS1N-WMBCcfi8sdjzIigKDsL1FuHOA?e=XAFq1E
Changelog
Additional comments