fix getPointsProperty not always available in PolyMeshT_impl.hh
This commit is contained in:
@@ -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); });
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user