diff --git a/vcg/complex/algorithms/polygonal_algorithms.h b/vcg/complex/algorithms/polygonal_algorithms.h index d25fd400..0502b7db 100644 --- a/vcg/complex/algorithms/polygonal_algorithms.h +++ b/vcg/complex/algorithms/polygonal_algorithms.h @@ -91,8 +91,8 @@ class PolygonalAlgorithm //get border edges std::vector > IsBorder; - BorderEdgeFromPFFAdj(poly_m,IsBorder); - + //BorderEdgeFromPFFAdj(poly_m,IsBorder); + vcg::tri::UpdateFlags::VertexBorderFromFaceAdj(poly_m); //deselect all vertices vcg::tri::UpdateFlags::VertexClearS(poly_m); @@ -242,30 +242,6 @@ class PolygonalAlgorithm public: -// static void GetFaceNormals(FaceType &F, -// std::vector &Norms) -// { -// Norms.clear(); -// if (F.VN()<=2) return; -// for (int i=0;i update quality -// static void PerVertexValence(PolyMeshType &poly_m, -// std::vector &Valence) -// { -// Valence.resize(poly_m.vert.size(),0); -// for (size_t i=0;i::PerFaceQualityRamp(poly_m); -// } - -// static void ColorScatterByQuality(PolyMeshType &poly_m) -// { -// //get the max of quality -// ScalarType MaxQ=0; -// for (size_t i=0;imaxV; -// for (size_t i=0;itestMax)val=testMax; -// if (!to_swap) -// poly_m.face[i].C()=vcg::Color4b::ColorRamp(testMin,testMax,poly_m.face[i].Q()); -// else -// poly_m.face[i].C()=vcg::Color4b::ColorRamp(testMax,testMin,poly_m.face[i].Q()); - -// } -// } - -// //DELETE -// static void ColorUniformly(PolyMeshType &poly_m, -// vcg::Color4b col=vcg::Color4b(200,200,200,255)) -// { -// vcg::tri::UpdateColor::PerFaceConstant(poly_m,col); -// } /*! \brief given a face this function returns the template positions as in "Statics Aware Grid Shells" */