From b6b07e3260965521dd3da58ba66723630d758d82 Mon Sep 17 00:00:00 2001 From: papush! Date: Thu, 25 Nov 2021 14:58:47 +0100 Subject: [PATCH] fix curvature computation error --- src/curvature.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/curvature.h b/src/curvature.h index 84bc771..71dff56 100644 --- a/src/curvature.h +++ b/src/curvature.h @@ -14,7 +14,10 @@ public: OpenMesh::VPropHandleT vprop_H; OpenMesh::VPropHandleT vprop_quad; - Courbures(MyMesh &mesh) : _mesh(mesh) {} + Courbures(MyMesh &mesh) : _mesh(mesh) { + _mesh.request_vertex_normals(); + _mesh.update_normals(); + } void set_fixed_colors(); void normales_locales();