fix const correctness in inertia.h

This commit is contained in:
T.Alderighi 2021-12-13 15:32:45 +01:00
parent d3d496848d
commit 1b20698dfb
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public:
When you create a Inertia object, you have to specify the mesh that it refers to.
The properties are computed at that moment. Subsequent modification of the mesh does not affect these values.
*/
Inertia(MeshType &m) {Compute(m);}
Inertia(const MeshType &m) { Compute(m); }
/* compute various integrations over projection of face */
void compProjectionIntegrals(const FaceType &f)