From 774ce56dea9c652ffe43d9c7a6d67294999cd7ab Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 29 Sep 2008 10:11:21 +0000 Subject: [PATCH] Solved small compilation issues. --- apps/sample/trimesh_hole/trimesh_hole.cpp | 10 +++++----- apps/sample/trimesh_smooth/trimesh_smooth.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/sample/trimesh_hole/trimesh_hole.cpp b/apps/sample/trimesh_hole/trimesh_hole.cpp index b9c717e1..58bfab34 100644 --- a/apps/sample/trimesh_hole/trimesh_hole.cpp +++ b/apps/sample/trimesh_hole/trimesh_hole.cpp @@ -58,14 +58,14 @@ bool NormalTest(typename face::Pos pos) { //giro intorno al vertice e controllo le normali float accum=0; - MESH::ScalarType thr = 0.0f; - MESH::CoordType NdP = Normal(*pos.f); - MESH::CoordType tmp, oop, soglia = MESH::CoordType(thr,thr,thr); + typename MESH::ScalarType thr = 0.0f; + typename MESH::CoordType NdP = Normal(*pos.f); + typename MESH::CoordType tmp, oop, soglia = typename MESH::CoordType(thr,thr,thr); face::Pos aux=pos; do{ aux.FlipF(); aux.FlipE(); - oop = Abs(tmp - Normal(*pos.f)); + oop = Abs(tmp - Normal(*pos.f)); if(oop < soglia )return false; }while(aux != pos && !aux.IsBorder()); @@ -278,7 +278,7 @@ int main(int argc,char ** argv){ } } - LaplacianSmooth(m,1,true); + tri::Smooth::VertexCoordLaplacian(m,1,true); printf("\nCompleted. Saving....\n"); diff --git a/apps/sample/trimesh_smooth/trimesh_smooth.cpp b/apps/sample/trimesh_smooth/trimesh_smooth.cpp index fc5771bd..3af1fe48 100644 --- a/apps/sample/trimesh_smooth/trimesh_smooth.cpp +++ b/apps/sample/trimesh_smooth/trimesh_smooth.cpp @@ -57,7 +57,7 @@ if(argc<4) for(int i=0;i::PerFaceNormalized(m); - PasoDobleSmoothFast(m,atoi(argv[3]),atof(argv[4]),atoi(argv[5])); + tri::Smooth::VertexCoordPasoDobleFast(m,atoi(argv[3]),atof(argv[4]),atoi(argv[5])); } //LaplacianSmooth(m,atoi(argv[2]));