From 5f59f1fa5ad00cd6cefb3578b78fb26b1b19efa0 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Wed, 8 May 2013 09:05:58 +0000 Subject: [PATCH] corrected some non templated type on SplitNonManifoldVertex function --- vcg/complex/algorithms/clean.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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