-
Notifications
You must be signed in to change notification settings - Fork 14
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
BHoM_Engine: replaced calls to Query.Clone() and Query.IClone() with calls to BH.Engine.Base.DeepClone() #2585
BHoM_Engine: replaced calls to Query.Clone() and Query.IClone() with calls to BH.Engine.Base.DeepClone() #2585
Conversation
@BHoMBot check installer |
@alelom to confirm, the following checks are now queued:
|
@BHoMBot check installer |
@alelom to confirm, the following checks are now queued:
There are 29 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.
For the versioning @alelom I think we should put this on the DeepClone method:
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.Plane)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.Point)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.Vector)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.CoordinateSystem.Cartesian)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.Arc)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.Circle)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.Ellipse)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.Line)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.NurbsCurve)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.PolyCurve)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.Polyline)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.Extrusion)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.Loft)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.NurbsSurface)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.PlanarSurface)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.Pipe)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.PolySurface)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.Mesh)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.Face)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.BoundingBox)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.CompositeGeometry)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.Quaternion)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.TransformMatrix)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.Basis)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.Clone(BH.oM.Geometry.SurfaceTrim)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.IClone(BH.oM.Geometry.IGeometry)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.IClone(BH.oM.Geometry.ICurve)")]
[PreviousVersion("4.3", "BH.Engine.Geometry.Query.IClone(BH.oM.Geometry.ISurface)")]
Just so scripts and stuff can version nicely to using DeepClone
as well, what do you think?
@BHoMBot check required |
@alelom to confirm, the following checks are now queued:
There are 11 requests in the queue ahead of you. |
@BHoMBot check versioning |
@FraserGreenroyd to confirm, the following checks are now queued:
|
@BHoMBot check versioning |
@FraserGreenroyd to confirm, the following checks are now queued:
|
@FraserGreenroyd to confirm, the following checks are now queued:
|
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 CI/CD instruction. I am authorising dispensation to be granted on check ref. 3201609309 |
@FraserGreenroyd I have now provided a passing check on reference |
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.
I have tested this by doing original clones of the geometry and then deep clones and comparing the output via the diffing engine and everything came back equal, suggesting to me that the use of DeepClone
is equal to the result of the Geometry IClone
and the replacement is safe.
Merging once all checks on dependent PRs are completed.
@BHoMBot check ready-to-merge |
@FraserGreenroyd to confirm, the following checks are now queued:
There are 4 requests in the queue ahead of you. |
Issues addressed by this PR
Closes #2584
Closes #2583
Closes #2582
Closes #2577
Closes #2576
Test files
Changelog
Additional comments