From 7f399c7515711df4b106730691a10fe3e07ad81c Mon Sep 17 00:00:00 2001 From: ganovelli Date: Tue, 30 Sep 2008 11:38:05 +0000 Subject: [PATCH] [Namespaces changes] vert->vertex trimesh->tri clean up of some namespaces to comply the following naming: Complexes (3 letters namespaces): order 0 (point cloud ) :vrt order 1 (edge meshes) :edg order 2 (triangle meshes) :tri order 3 (triangle meshes) :tet Simplexes (extended namespaces): order 0 (vertex) :vertex order 1 (edge) :edge order 2 (triangle) :triangle (temporarily it remains "face") order 3 (tetrahedron) :tetrahedron --- vcg/complex/trimesh/autoalign_4pcs.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vcg/complex/trimesh/autoalign_4pcs.h b/vcg/complex/trimesh/autoalign_4pcs.h index 368c62c1..566ceb21 100644 --- a/vcg/complex/trimesh/autoalign_4pcs.h +++ b/vcg/complex/trimesh/autoalign_4pcs.h @@ -60,7 +60,7 @@ public: /* mesh only for using spatial indexing functions (to remove) */ class PEdge; // dummy prototype never used class PFace; - class PVertex : public vcg::VertexSimp2< PVertex, PEdge, PFace,vcg::vert::BitFlags,vcg::vert::Coord3f ,vcg::vert::Mark>{}; + class PVertex : public vcg::VertexSimp2< PVertex, PEdge, PFace,vcg::vertex::BitFlags,vcg::vertex::Coord3f ,vcg::vertex::Mark>{}; /*same as for the vertes */ class PFace : public vcg::FaceSimp2< PVertex, PEdge, PFace> {}; /*the mesh is a container of vertices and a container of faces */ @@ -238,7 +238,7 @@ FourPCS:: Init(MeshType &_P,MeshType &_Q){ std::vector< CoordType > samples,d_samples; std::vector dists; std::vector ress; - vcg::trimesh::GetKClosestVertex< + vcg::tri::GetKClosestVertex< MeshType, vcg::GridStaticPtr, std::vector, @@ -310,7 +310,7 @@ FourPCS::SelectCoplanarBase(){ std::vector distances; std::vector points; - vcg::trimesh::GetInSphereVertex< + vcg::tri::GetInSphereVertex< MeshType, vcg::GridStaticPtr, std::vector, @@ -348,7 +348,7 @@ FourPCS::SelectCoplanarBase(){ std::vector dists; for(int i = 0 ; i< 4; ++i){ - vcg::trimesh::GetKClosestVertex< + vcg::tri::GetKClosestVertex< MeshType, vcg::GridStaticPtr, std::vector, @@ -487,7 +487,7 @@ FourPCS::FindCongruent() { // of base B, on Q, with approximation delt bb.Add(R2inv[i].pos+vcg::Point3f(prs.delta * 0.1,prs.delta * 0.1 , prs.delta * 0.1 )); bb.Add(R2inv[i].pos-vcg::Point3f(prs.delta * 0.1,prs.delta* 0.1 , prs.delta* 0.1)); - vcg::trimesh::GetInBoxVertex > + vcg::tri::GetInBoxVertex > (Invr,*ugrid,bb,closests); n_closests+=closests.size(); @@ -552,14 +552,14 @@ int FourPCS::EvaluateSample(CandiType & fp, CoordType & tp, CoordType np[0] = np4[0]; np[1] = np4[1]; np[2] = np4[2]; v = 0; - //v = vcg::trimesh::GetClosestVertex< + //v = vcg::tri::GetClosestVertex< // MeshType, // vcg::GridStaticPtr // >(*Q,ugridQ,tp,radius, dist ); typename MeshType::VertexType vq; vq.P() = tp; vq.N() = np; - v = vcg::trimesh::GetClosestVertexNormal< + v = vcg::tri::GetClosestVertexNormal< MeshType, vcg::GridStaticPtr >(*Q,ugridQ,vq,radius, dist );