diff --git a/vcg/complex/algorithms/clean.h b/vcg/complex/algorithms/clean.h index e8583860..5d76a679 100644 --- a/vcg/complex/algorithms/clean.h +++ b/vcg/complex/algorithms/clean.h @@ -120,6 +120,7 @@ private: typedef typename MeshType::ConstVertexIterator ConstVertexIterator; typedef typename MeshType::EdgeIterator EdgeIterator; typedef typename MeshType::EdgePointer EdgePointer; + typedef typename MeshType::CoordType CoordType; typedef typename MeshType::ScalarType ScalarType; typedef typename MeshType::FaceType FaceType; typedef typename MeshType::FacePointer FacePointer; @@ -477,7 +478,7 @@ private: // Duplicated vertices are moved apart according to the move threshold param. // that is a percentage of the average vector from the non manifold vertex to the barycenter of the incident faces. - static int SplitNonManifoldVertex(MeshType& m, float moveThreshold) + static int SplitNonManifoldVertex(MeshType& m, ScalarType moveThreshold) { RequireFFAdjacency(m); typedef std::pair FaceInt; // a face and the index of the vertex that we have to change @@ -522,7 +523,7 @@ private: pu.Update(np); firstVp->ImportData(*np); // loop on the face to be changed, and also compute the movement vector; - Point3f delta(0,0,0); + CoordType delta(0,0,0); for(size_t j=0;j