From 29b18eb3c0c3f9812d768b4858a86c06c19b7cb6 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Thu, 29 Jun 2006 13:07:33 +0000 Subject: [PATCH] Aggiunta superclasse UpdateTopology templated sui container e con funzioni sui container --- vcg/complex/tetramesh/update/topology.h | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/vcg/complex/tetramesh/update/topology.h b/vcg/complex/tetramesh/update/topology.h index 3a03dfea..3e200b10 100644 --- a/vcg/complex/tetramesh/update/topology.h +++ b/vcg/complex/tetramesh/update/topology.h @@ -23,6 +23,8 @@ /**************************************************************************** History +$Log: not supported by cvs2svn $ + Revision 1.1 2004/16/04 14:32 pietroni Initial commit @@ -163,7 +165,7 @@ public: @param STL_TETRA_CONT (Template Parameter) Specifies the type of the tetrahedrons container any the tetrahedrons type. */ template < class STL_VERT_CONT ,class STL_TETRA_CONT > -class UpdateTetraTopology +class UpdateTopologyBase { public: @@ -328,7 +330,7 @@ static void TestVTTopology(VertexContainer &vert,TetraContainer &tetra) **/ //@{ ///Build the Tetrahedron-Tetrahedron Topology (by Face) -static void TTTopology(VertexContainer &vert,TetraContainer &tetra) +static void TTTopology(const VertexContainer &vert,TetraContainer &tetra) { vector > VF; VertexType* v0; @@ -398,6 +400,8 @@ static void TTTopology(VertexContainer &vert,TetraContainer &tetra) } } + + ///Connect trought Tetrahedron-Tetrahedron Topology t0 and t1 with faces i0 and i1 static void _AttachTTTopology(TetraType *t0,int i0,TetraType *t1,int i1) { @@ -690,6 +694,21 @@ static bool IsExternEdge(TetraType *t,int edge) } }; // end class +template +class UpdateTopology: public UpdateTopologyBase{ +public: + static void TTTopology(TetraMeshType & tmesh){ + UpdateTopologyBase:: + TTTopology(tmesh.vert,tmesh.tetra); + } + static void VTTopology(TetraMeshType & tmesh){ + UpdateTopologyBase:: + TTTopology(tmesh.vert,tmesh.tetra); + } + + +}; /*@}*/ } // End namespace