diff --git a/vcg/complex/algorithms/smooth.h b/vcg/complex/algorithms/smooth.h index 7e559a06..1e5a2382 100644 --- a/vcg/complex/algorithms/smooth.h +++ b/vcg/complex/algorithms/smooth.h @@ -628,6 +628,50 @@ public: int cnt; }; +static void PointCloudQualityAverage(MeshType &m, int neighbourSize=8, int iter=1) +{ + tri::RequireCompactness(m); + VertexConstDataWrapper ww(m); + KdTree kt(ww); + typename KdTree::PriorityQueue pq; + for(int k=0;k newQVec(m.vn); + for(int i=0;i ww(m); + KdTree kt(ww); + typename KdTree::PriorityQueue pq; + std::vector newQVec(m.vn); + for(int i=0;i qVec(pq.getNofElements()); + for(int j=0;j