diff --git a/vcg/complex/algorithms/parametrization/distortion.h b/vcg/complex/algorithms/parametrization/distortion.h index c24e7b8c..2c3d48cd 100644 --- a/vcg/complex/algorithms/parametrization/distortion.h +++ b/vcg/complex/algorithms/parametrization/distortion.h @@ -110,7 +110,6 @@ public: CoordType p0=f->P((e+2)%3); CoordType p1=f->P(e); CoordType p2=f->P((e+1)%3); - typedef typename CoordType::ScalarType ScalarType; CoordType dir0=p2-p1; CoordType dir1=p0-p1; dir0.Normalize(); @@ -145,7 +144,6 @@ public: CoordType p0=f->cP((e+2)%3); CoordType p1=f->cP(e); CoordType p2=f->cP((e+1)%3); - typedef typename CoordType::ScalarType ScalarType; CoordType dir0=p2-p1; CoordType dir1=p0-p1; return Angle(dir0,dir1); diff --git a/vcg/complex/algorithms/update/halfedge_indexed.h b/vcg/complex/algorithms/update/halfedge_indexed.h index bd5bf5f2..054215ef 100644 --- a/vcg/complex/algorithms/update/halfedge_indexed.h +++ b/vcg/complex/algorithms/update/halfedge_indexed.h @@ -513,9 +513,8 @@ namespace vcg if( HEdgeType::HasHFAdjacency() && FaceType::HasFHAdjacency()){ - FaceIterator fi0 = vcg::tri::Allocator::AddFaces(m,1); + vcg::tri::Allocator::AddFaces(m,1); m.face.back().ImportData(*e0->HFp()); - SetRelationsLoopFace(&(*ei0),e1->HFp()); // one loop to the old face SetRelationsLoopFace(&(*ei1),&m.face.back()); // the other to the new face }