From bc45cfeef40b1461483475db595997f12bc3c2fd Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Sat, 5 Jul 2014 14:20:00 +0000 Subject: [PATCH] corrected 1 compilation issue with mesh passed as const --- vcg/complex/algorithms/mesh_to_matrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/complex/algorithms/mesh_to_matrix.h b/vcg/complex/algorithms/mesh_to_matrix.h index 19c41878..a538d36b 100644 --- a/vcg/complex/algorithms/mesh_to_matrix.h +++ b/vcg/complex/algorithms/mesh_to_matrix.h @@ -129,7 +129,7 @@ public: for (int i = 0; i < mesh.FN(); i++) for (int j = 0; j < 3; j++) { - faces(i,j) = (int)(mesh.face[i].V(j) - v0); + faces(i,j) = (int)(mesh.face[i].cV(j) - v0); assert(faces(i,j) >= 0 && faces(i,j) < mesh.VN()); } }