From f634f158f97d95c6afc51e4d109bd0ebe112e154 Mon Sep 17 00:00:00 2001 From: Ralph Wessel Date: Tue, 5 Nov 2024 08:33:53 +0000 Subject: [PATCH] Use FastDoubleWrap for serialising Mesh vertices --- SpeckleLib/Speckle/Primitive/Mesh/Mesh.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SpeckleLib/Speckle/Primitive/Mesh/Mesh.cpp b/SpeckleLib/Speckle/Primitive/Mesh/Mesh.cpp index 03d9640..4849bf4 100644 --- a/SpeckleLib/Speckle/Primitive/Mesh/Mesh.cpp +++ b/SpeckleLib/Speckle/Primitive/Mesh/Mesh.cpp @@ -1,6 +1,7 @@ #include "Speckle/Primitive/Mesh/Mesh.h" #include "Active/Serialise/Item/Wrapper/ValueWrap.h" +#include "Active/Serialise/Item/Wrapper/FastDoubleWrap.h" #include "Active/Serialise/Package/Wrapper/PackageWrap.h" #include "Active/Serialise/Package/Wrapper/ContainerWrap.h" #include "Active/Serialise/Inventory/Identity.h" @@ -78,7 +79,7 @@ Cargo::Unique Mesh::getCargo(const Inventory::Item& item) const { using namespace active::serialise; switch (item.index) { case vertexID: - return std::make_unique>>(m_vertices); + return std::make_unique, FastDoubleWrap>>(m_vertices); case faceID: return std::make_unique>>(m_faces); case colorID: