X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FSMDS_VolumeOfFaces.cxx;h=2d1dc94e6f5a98835f700c8115a1c42395f62ad3;hb=7938a9e589a441324b40af3b39bd1a5b8eb7f92a;hp=a710a8ffeb61a9c3d19590fd4ac0bb032ed926e3;hpb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f;p=modules%2Fsmesh.git diff --git a/src/SMDS/SMDS_VolumeOfFaces.cxx b/src/SMDS/SMDS_VolumeOfFaces.cxx index a710a8ffe..2d1dc94e6 100644 --- a/src/SMDS/SMDS_VolumeOfFaces.cxx +++ b/src/SMDS/SMDS_VolumeOfFaces.cxx @@ -17,7 +17,7 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // // @@ -25,6 +25,10 @@ // Author : Jean-Michel BOULCOURT // Module : SMESH +#ifdef _MSC_VER +#pragma warning(disable:4786) +#endif + #include "SMDS_VolumeOfFaces.hxx" #include "SMDS_IteratorOfElements.hxx" @@ -39,27 +43,28 @@ void SMDS_VolumeOfFaces::Print(ostream & OS) const { OS << "volume <" << GetID() << "> : "; int i; - for (i = 0; i < myFaces.size()-1; ++i) OS << myFaces[i] << ","; + for (i = 0; i < NbFaces()-1; ++i) OS << myFaces[i] << ","; OS << myFaces[i]<< ") " << endl; } int SMDS_VolumeOfFaces::NbFaces() const { - return myFaces.size(); + return myNbFaces; } class SMDS_VolumeOfFaces_MyIterator:public SMDS_ElemIterator { - const vector& mySet; + const SMDS_MeshFace* const *mySet; + int myLength; int index; public: - SMDS_VolumeOfFaces_MyIterator(const vector& s): - mySet(s),index(0) {} + SMDS_VolumeOfFaces_MyIterator(const SMDS_MeshFace* const *s, int l): + mySet(s),myLength(l),index(0) {} bool more() { - return index