From 1b20698dfbfa246e10125a704f8f350183807192 Mon Sep 17 00:00:00 2001 From: "T.Alderighi" Date: Mon, 13 Dec 2021 15:32:45 +0100 Subject: [PATCH] fix const correctness in inertia.h --- vcg/complex/algorithms/inertia.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/complex/algorithms/inertia.h b/vcg/complex/algorithms/inertia.h index 26cecb20..bdf1b1ce 100644 --- a/vcg/complex/algorithms/inertia.h +++ b/vcg/complex/algorithms/inertia.h @@ -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)