Solved small compilation issues.

This commit is contained in:
Paolo Cignoni 2008-09-29 10:11:21 +00:00
parent b5bca977a7
commit 774ce56dea
2 changed files with 6 additions and 6 deletions

View File

@ -58,14 +58,14 @@ bool NormalTest(typename face::Pos<typename MESH::FaceType> pos)
{
//giro intorno al vertice e controllo le normali
float accum=0;
MESH::ScalarType thr = 0.0f;
MESH::CoordType NdP = Normal<MESH::FaceType>(*pos.f);
MESH::CoordType tmp, oop, soglia = MESH::CoordType(thr,thr,thr);
typename MESH::ScalarType thr = 0.0f;
typename MESH::CoordType NdP = Normal<typename MESH::FaceType>(*pos.f);
typename MESH::CoordType tmp, oop, soglia = typename MESH::CoordType(thr,thr,thr);
face::Pos<typename MESH::FaceType> aux=pos;
do{
aux.FlipF();
aux.FlipE();
oop = Abs(tmp - Normal<MESH::FaceType>(*pos.f));
oop = Abs(tmp - Normal<typename MESH::FaceType>(*pos.f));
if(oop < soglia )return false;
}while(aux != pos && !aux.IsBorder());
@ -278,7 +278,7 @@ int main(int argc,char ** argv){
}
}
LaplacianSmooth<MyMesh>(m,1,true);
tri::Smooth<MyMesh>::VertexCoordLaplacian(m,1,true);
printf("\nCompleted. Saving....\n");

View File

@ -57,7 +57,7 @@ if(argc<4)
for(int i=0;i<Step;++i)
{
tri::UpdateNormals<MyMesh>::PerFaceNormalized(m);
PasoDobleSmoothFast(m,atoi(argv[3]),atof(argv[4]),atoi(argv[5]));
tri::Smooth<MyMesh>::VertexCoordPasoDobleFast(m,atoi(argv[3]),atof(argv[4]),atoi(argv[5]));
}
//LaplacianSmooth(m,atoi(argv[2]));