From: eap Date: Fri, 29 Jun 2012 13:47:05 +0000 (+0000) Subject: 0021542: EDF 1699 SMESH: Reorient a group of faces X-Git-Tag: V6_6_0a1~289 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b998225160f806c6515d51a3aacb9920fb77ad9a;p=modules%2Fsmesh.git 0021542: EDF 1699 SMESH: Reorient a group of faces namespace SMESHUtils { + template + void CompactVector(TVECTOR& vec) } --- diff --git a/src/SMESHUtils/SMESH_TypeDefs.hxx b/src/SMESHUtils/SMESH_TypeDefs.hxx index e43222958..6b0cdcba8 100644 --- a/src/SMESHUtils/SMESH_TypeDefs.hxx +++ b/src/SMESHUtils/SMESH_TypeDefs.hxx @@ -60,6 +60,12 @@ namespace SMESHUtils TVECTOR v2; vec.swap( v2 ); } + template + void CompactVector(TVECTOR& vec) + { + TVECTOR v2( vec ); + vec.swap( v2 ); + } } //=======================================================================