From ec0d4bf1e37724635f950d245bd03a85fe8358a3 Mon Sep 17 00:00:00 2001 From: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com> Date: Mon, 27 Jan 2025 13:40:30 +0000 Subject: [PATCH] Vertex Normals --- src/Speckle.Objects/Geometry/Mesh.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Speckle.Objects/Geometry/Mesh.cs b/src/Speckle.Objects/Geometry/Mesh.cs index 27f2e60a..6ae953b8 100644 --- a/src/Speckle.Objects/Geometry/Mesh.cs +++ b/src/Speckle.Objects/Geometry/Mesh.cs @@ -44,6 +44,13 @@ public class Mesh : Base, IHasBoundingBox, IHasVolume, IHasArea, ITransformable< [DetachProperty, Chunkable(31250)] public List textureCoordinates { get; set; } = new(); + /// + /// Flat list of vertex normal data (flat x,y,z,x,y,z... list) + /// Expected that there are either 1 texture coordinate per vertex, or an empty + /// + [DetachProperty, Chunkable(62500)] + public List vertexNormals { get; set; } = new(); + /// /// The unit's this is in. /// This should be one of