From fa5166f87893fb4cc1bacd2c63f569d48e44e75a Mon Sep 17 00:00:00 2001 From: Max Lyon Date: Tue, 16 Mar 2021 18:55:06 +0100 Subject: [PATCH] fix getPointsProperty not always available in PolyMeshT_impl.hh --- src/OpenMesh/Core/Mesh/PolyMeshT_impl.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenMesh/Core/Mesh/PolyMeshT_impl.hh b/src/OpenMesh/Core/Mesh/PolyMeshT_impl.hh index dabdacfe..66d49d9f 100644 --- a/src/OpenMesh/Core/Mesh/PolyMeshT_impl.hh +++ b/src/OpenMesh/Core/Mesh/PolyMeshT_impl.hh @@ -306,7 +306,7 @@ typename PolyMeshT::Point PolyMeshT:: calc_centroid(MeshHandle /*_mh*/) const { - return this->vertices().avg(getPointsProperty(*this)); + return this->vertices().avg([this](VertexHandle vh) { return this->point(vh); }); } //-----------------------------------------------------------------------------