diff --git a/src/MeshInertiaCalculator.cc b/src/MeshInertiaCalculator.cc index c36c3e7122..060d0afc43 100644 --- a/src/MeshInertiaCalculator.cc +++ b/src/MeshInertiaCalculator.cc @@ -39,8 +39,8 @@ using namespace sim; ////////////////////////////////////////////////// void MeshInertiaCalculator::GetMeshTriangles( - std::vector& _triangles, - gz::math::Vector3d _meshScale, + std::vector &_triangles, + const gz::math::Vector3d &_meshScale, const gz::common::Mesh* _mesh) { // Get the vertices & indices of the mesh diff --git a/src/MeshInertiaCalculator.hh b/src/MeshInertiaCalculator.hh index c54b9a98f2..8d865fcd2d 100644 --- a/src/MeshInertiaCalculator.hh +++ b/src/MeshInertiaCalculator.hh @@ -82,10 +82,12 @@ namespace gz /// \param[out] _triangles A vector to hold all the Triangle /// instances obtained /// from the vertices & indices of the mesh + /// \param[in] _meshScale A vector with the scaling factor + /// of all the 3 axes /// \param[in] _mesh Mesh object public: void GetMeshTriangles( - std::vector& _triangles, - gz::math::Vector3d _meshScale, + std::vector &_triangles, + const gz::math::Vector3d &_meshScale, const gz::common::Mesh* _mesh); /// \brief Function to calculate the centroid of the mesh. Since