Solved small compilation issues.
This commit is contained in:
parent
b5bca977a7
commit
774ce56dea
|
@ -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");
|
||||
|
||||
|
|
|
@ -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]));
|
||||
|
|
Loading…
Reference in New Issue