Skip to content

Commit

Permalink
Fix mesh parser passing eigen types by value
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Nov 28, 2024
1 parent a49fdb4 commit 8f4ca8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tesseract_geometry/include/tesseract_geometry/mesh_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ std::vector<std::shared_ptr<T>> createMeshFromAsset(const aiScene* scene,
*/
template <class T>
std::vector<std::shared_ptr<T>> 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,
Expand Down Expand Up @@ -418,7 +418,7 @@ std::vector<std::shared_ptr<T>> createMeshFromPath(const std::string& path,
*/
template <class T>
std::vector<std::shared_ptr<T>> 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,
Expand Down Expand Up @@ -537,7 +537,7 @@ template <typename T>
static std::vector<std::shared_ptr<T>> 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,
Expand Down

0 comments on commit 8f4ca8d

Please sign in to comment.