fix getPointsProperty not always available in PolyMeshT_impl.hh

This commit is contained in:
Max Lyon
2021-03-16 18:55:06 +01:00
parent 554fe2ad35
commit fa5166f878

View File

@@ -306,7 +306,7 @@ typename PolyMeshT<Kernel>::Point
PolyMeshT<Kernel>:: PolyMeshT<Kernel>::
calc_centroid(MeshHandle /*_mh*/) const calc_centroid(MeshHandle /*_mh*/) const
{ {
return this->vertices().avg(getPointsProperty(*this)); return this->vertices().avg([this](VertexHandle vh) { return this->point(vh); });
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------