From 22afe8170b2580bcfeb8f82c8232df8a5458fd95 Mon Sep 17 00:00:00 2001 From: Luigi Malomo Date: Fri, 24 Mar 2017 14:47:50 +0100 Subject: [PATCH] comments cleaned --- .../algorithms/parametrization/distortion.h | 52 ------------------- 1 file changed, 52 deletions(-) diff --git a/vcg/complex/algorithms/parametrization/distortion.h b/vcg/complex/algorithms/parametrization/distortion.h index aba51880..d1457644 100644 --- a/vcg/complex/algorithms/parametrization/distortion.h +++ b/vcg/complex/algorithms/parametrization/distortion.h @@ -91,7 +91,6 @@ public: typedef typename MeshType::CoordType CoordType; typedef typename MeshType::ScalarType ScalarType; typedef typename MeshType::FaceType::CurVecType CurVecType; -// typedef typename std::conditional::type BaseTexType; typedef UVHelper UV; typedef typename UV::TexCoordType TexCoordType; typedef typename TexCoordType::ScalarType TexScalarType; @@ -108,16 +107,6 @@ public: static ScalarType AreaUV(const FaceType *f) { -// TexCoordType uv0,uv1,uv2; -// if(PerWedgeFlag) { -// uv0=f->cWT(0).P(); -// uv1=f->cWT(1).P(); -// uv2=f->cWT(2).P(); -// } else { -// uv0=f->cV(0)->T().P(); -// uv1=f->cV(1)->T().P(); -// uv2=f->cV(2)->T().P(); -// } TexCoordType uv0 = UVCoord(f, 0); TexCoordType uv1 = UVCoord(f, 1); TexCoordType uv2 = UVCoord(f, 2); @@ -137,14 +126,6 @@ public: assert((e>=0)&&(e<3)); TexCoordType uv0 = UVCoord(f, e+0); TexCoordType uv1 = UVCoord(f, (e+1)%3); -// Point2 uv0,uv1; -// if(PerWedgeFlag) { -// uv0=f->cWT(e+0).P(); -// uv1=f->cWT((e+1)%3).P(); -// } else { -// uv0=f->cV0(e)->T().P(); -// uv1=f->cV1(e)->T().P(); -// } ScalarType UVlength=Distance(uv0,uv1); return UVlength; } @@ -168,16 +149,6 @@ public: TexCoordType uv0 = UVCoord(f, (e+2)%3); TexCoordType uv1 = UVCoord(f, e); TexCoordType uv2 = UVCoord(f, (e+1)%3); -// Point2 uv0,uv1,uv2; -// if(PerWedgeFlag) { -// uv0=f->cWT((e+2)%3).P(); -// uv1=f->cWT((e+0)%3).P(); -// uv2=f->cWT((e+1)%3).P(); -// } else { -// uv0=f->V2(e)->T().P(); -// uv1=f->V0(e)->T().P(); -// uv2=f->V1(e)->T().P(); -// } vcg::Point2 dir0=uv2-uv1; vcg::Point2 dir1=uv0-uv1; dir0.Normalize(); @@ -202,16 +173,6 @@ public: TexCoordType uv0 = UVCoord(f, (e+2)%3); TexCoordType uv1 = UVCoord(f, e); TexCoordType uv2 = UVCoord(f, (e+1)%3); -// Point2 uv0,uv1,uv2; -// if(PerWedgeFlag) { -// uv0=f->cWT((e+2)%3).P(); -// uv1=f->cWT((e+0)%3).P(); -// uv2=f->cWT((e+1)%3).P(); -// } else { -// uv0=f->cV2(e)->T().P(); -// uv1=f->cV0(e)->T().P(); -// uv2=f->cV1(e)->T().P(); -// } vcg::Point2 dir0=uv2-uv1; vcg::Point2 dir1=uv0-uv1; dir0.Normalize(); @@ -311,9 +272,6 @@ public: TexCoordType p0 = UVCoord(f, 0); TexCoordType p1 = UVCoord(f, 1); TexCoordType p2 = UVCoord(f, 2); -// TexCoordType p0 = (PerWedgeFlag)? f->cWT(0).P() : f->cV(0)->T().P() ; -// TexCoordType p1 = (PerWedgeFlag)? f->cWT(1).P() : f->cV(1)->T().P() ; -// TexCoordType p2 = (PerWedgeFlag)? f->cWT(2).P() : f->cV(2)->T().P() ; CoordType q0 = f->cP(0); CoordType q1 = f->cP(1); @@ -339,9 +297,6 @@ public: TexCoordType p0 = UVCoord(f, 0); TexCoordType p1 = UVCoord(f, 1); TexCoordType p2 = UVCoord(f, 2); -// TexCoordType p0 = (PerWedgeFlag)? f->cWT(0).P() : f->cV(0)->T().P() ; -// TexCoordType p1 = (PerWedgeFlag)? f->cWT(1).P() : f->cV(1)->T().P() ; -// TexCoordType p2 = (PerWedgeFlag)? f->cWT(2).P() : f->cV(2)->T().P() ; CoordType q0 = f->cP(0); CoordType q1 = f->cP(1); @@ -375,7 +330,6 @@ public: const Eigen::Vector2d singular = svd2x2(F); const double a = singular(0) - 1; const double b = singular(1) - 1; -// std::cout << "Singular" << std::endl << singular << std::endl; return ScalarType(0.5 * (a*a + b*b)); } @@ -587,12 +541,6 @@ public: } }; -//template -//static TexCoordType Distortion::UVCoord(const FaceType *f, int i) -//{ -// return f->cV(0)->T().P(); -//} - }} // namespace end #endif