From 8a4d8438fa916a336e7563b67c84ed8dd06f3542 Mon Sep 17 00:00:00 2001 From: Karolina Prusicka Date: Tue, 1 Aug 2023 10:15:19 +0100 Subject: [PATCH 1/2] 'transform' input renamed to 'matrix' --- Environment_Engine/Modify/Transform.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Environment_Engine/Modify/Transform.cs b/Environment_Engine/Modify/Transform.cs index 10dc6fa29..4616a8979 100644 --- a/Environment_Engine/Modify/Transform.cs +++ b/Environment_Engine/Modify/Transform.cs @@ -37,20 +37,20 @@ public static partial class Modify [Description("Transforms the Space's perimeter and location point by the transform matrix. Only rigid body transformations are supported.")] [Input("space", "Space to transform.")] - [Input("transform", "Transform matrix.")] + [Input("matrix", "Transform matrix.")] [Input("tolerance", "Tolerance used in the check whether the input matrix is equivalent to the rigid body transformation.")] [Output("space", "Modified Space with unchanged properties, but transformed perimeter and location point.")] - public static Space Transform(this Space space, TransformMatrix transform, double tolerance = Tolerance.Distance) + public static Space Transform(this Space space, TransformMatrix matrix, double tolerance = Tolerance.Distance) { - if (!transform.IsRigidTransformation(tolerance)) + if (!matrix.IsRigidTransformation(tolerance)) { BH.Engine.Base.Compute.RecordError("Transformation failed: only rigid body transformations are currently supported."); return null; } Space result = space.ShallowClone(); - result.Perimeter = result.Perimeter.ITransform(transform); - result.Location = result.Location.Transform(transform); + result.Perimeter = result.Perimeter.ITransform(matrix); + result.Location = result.Location.Transform(matrix); return result; } From 4cda161feec809da9c1bdeec8b0ddae01d55990c Mon Sep 17 00:00:00 2001 From: Fraser Greenroyd Date: Tue, 1 Aug 2023 10:48:00 +0100 Subject: [PATCH 2/2] Update Environment_Engine/Modify/Transform.cs --- Environment_Engine/Modify/Transform.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Environment_Engine/Modify/Transform.cs b/Environment_Engine/Modify/Transform.cs index 4616a8979..b6dc64188 100644 --- a/Environment_Engine/Modify/Transform.cs +++ b/Environment_Engine/Modify/Transform.cs @@ -40,6 +40,7 @@ public static partial class Modify [Input("matrix", "Transform matrix.")] [Input("tolerance", "Tolerance used in the check whether the input matrix is equivalent to the rigid body transformation.")] [Output("space", "Modified Space with unchanged properties, but transformed perimeter and location point.")] + [PreviousInputNames("matrix", "transform")] public static Space Transform(this Space space, TransformMatrix matrix, double tolerance = Tolerance.Distance) { if (!matrix.IsRigidTransformation(tolerance))