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,