From 8f4ca8db143ec8790ccddf5d15ea80e04d980e0b Mon Sep 17 00:00:00 2001 From: Levi Armstrong Date: Wed, 27 Nov 2024 13:28:38 -0600 Subject: [PATCH] Fix mesh parser passing eigen types by value --- tesseract_geometry/include/tesseract_geometry/mesh_parser.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tesseract_geometry/include/tesseract_geometry/mesh_parser.h b/tesseract_geometry/include/tesseract_geometry/mesh_parser.h index a3627b69aaa..652b655628d 100644 --- a/tesseract_geometry/include/tesseract_geometry/mesh_parser.h +++ b/tesseract_geometry/include/tesseract_geometry/mesh_parser.h @@ -336,7 +336,7 @@ std::vector> createMeshFromAsset(const aiScene* scene, */ template std::vector> createMeshFromPath(const std::string& path, - Eigen::Vector3d scale = Eigen::Vector3d(1, 1, 1), + const Eigen::Vector3d& scale = Eigen::Vector3d(1, 1, 1), bool triangulate = false, bool flatten = false, bool normals = false, @@ -418,7 +418,7 @@ std::vector> createMeshFromPath(const std::string& path, */ template std::vector> createMeshFromResource(tesseract_common::Resource::Ptr resource, - Eigen::Vector3d scale = Eigen::Vector3d(1, 1, 1), + const Eigen::Vector3d& scale = Eigen::Vector3d(1, 1, 1), bool triangulate = false, bool flatten = false, bool normals = false, @@ -537,7 +537,7 @@ template static std::vector> createMeshFromBytes(const std::string& url, const uint8_t* bytes, size_t bytes_len, - Eigen::Vector3d scale = Eigen::Vector3d(1, 1, 1), + const Eigen::Vector3d& scale = Eigen::Vector3d(1, 1, 1), bool triangulate = false, bool flatten = false, bool normals = false,