From b70a0c6fe3d3fde824763cdd23668a03a7cca057 Mon Sep 17 00:00:00 2001 From: oguzhankoral Date: Wed, 17 Jul 2024 11:08:05 +0200 Subject: [PATCH] Have it back --- src/Speckle.Objects/Geometry/Point.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Speckle.Objects/Geometry/Point.cs b/src/Speckle.Objects/Geometry/Point.cs index 751ea5d0..000ce698 100644 --- a/src/Speckle.Objects/Geometry/Point.cs +++ b/src/Speckle.Objects/Geometry/Point.cs @@ -43,6 +43,21 @@ public class Point : Base, ITransformable public Point(Vector vector) : this(vector.x, vector.y, vector.z, vector.units, vector.applicationId) { } + /// + /// Gets or sets the coordinates of the + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore), Obsolete("Use x,y,z properties instead", true)] + public List value + { + get => null!; + set + { + x = value[0]; + y = value[1]; + z = value.Count > 2 ? value[2] : 0; + } + } + /// /// The x coordinate of the point. ///