From 7e742796f5fc71d142a89b03ccf378c6bb7ce3ba Mon Sep 17 00:00:00 2001 From: Ralph Wessel Date: Sun, 13 Oct 2024 22:27:59 +0100 Subject: [PATCH] Corrected Mesh speckle_type Mesh constructor failed to set BIM ID --- SpeckleLib/Speckle/Primitive/Mesh/Mesh.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SpeckleLib/Speckle/Primitive/Mesh/Mesh.h b/SpeckleLib/Speckle/Primitive/Mesh/Mesh.h index 2fe5dbb..7c4853a 100644 --- a/SpeckleLib/Speckle/Primitive/Mesh/Mesh.h +++ b/SpeckleLib/Speckle/Primitive/Mesh/Mesh.h @@ -26,7 +26,7 @@ namespace speckle::primitive { Default constructor @param unit The mesh unit type */ - Mesh(active::measure::LengthType unit = active::measure::LengthType::metre) : base{ utility::Guid{true}, utility::Guid{}, unit } {} + Mesh(active::measure::LengthType unit = active::measure::LengthType::metre) : base{utility::Guid{true}, utility::Guid{}, unit} {} /*! Constructor @param vertices The mesh vertices @@ -36,7 +36,7 @@ namespace speckle::primitive { */ Mesh(std::vector&& vertices, std::vector&& faces, std::vector&& colors, const ModelerAPI::Material& material, active::measure::LengthType unit = active::measure::LengthType::metre) : - base{ unit }, m_vertices{ std::move(vertices) }, m_faces{ std::move(faces) }, m_colors{ std::move(colors) }, m_material{ material } {} + base{utility::Guid{true}, utility::Guid{}, unit}, m_vertices{std::move(vertices)}, m_faces{std::move(faces)}, m_colors{std::move(colors)}, m_material{material} {} // MARK: - Functions (const) @@ -44,7 +44,7 @@ namespace speckle::primitive { Get the speckle type identifier @return The speckle type (relevant objects should override as required) */ - speckle::utility::String getSpeckleType() const override { return "speckle::primitive::Mesh"; } + speckle::utility::String getSpeckleType() const override { return "Objects.Geometry.Mesh"; } // MARK: - Serialisation @@ -61,9 +61,9 @@ namespace speckle::primitive { */ active::serialise::Cargo::Unique getCargo(const active::serialise::Inventory::Item& item) const override; /*! - Use a manager in (de)serialisation processes - @param management The management to use - */ + Use a manager in (de)serialisation processes + @param management The management to use + */ void useManagement(active::serialise::Management* management) const override; private: