]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix bug. Was always printing 8 nodes
authorjrt <jrt>
Fri, 12 Sep 2003 15:11:29 +0000 (15:11 +0000)
committerjrt <jrt>
Fri, 12 Sep 2003 15:11:29 +0000 (15:11 +0000)
src/SMDS/SMDS_VolumeOfNodes.cxx

index c7b308e919cbcf73fe5d9cb0c20d344c5d6a47c9..b2a7a547d16c27d8661691337256f4cee7294d0b 100644 (file)
@@ -101,8 +101,8 @@ void SMDS_VolumeOfNodes::Print(ostream & OS) const
 {
        OS << "volume <" << GetID() << "> : ";
        int i;
-       for (i = 0; i < 7; ++i) OS << myNodes[i] << ",";
-       OS << myNodes[7]<< ") " << endl;
+       for (i = 0; i < NbNodes(); ++i) OS << myNodes[i] << ",";
+       OS << myNodes[NbNodes()-1]<< ") " << endl;
 }
 
 int SMDS_VolumeOfNodes::NbFaces() const