From: jrt Date: Fri, 12 Sep 2003 15:11:29 +0000 (+0000) Subject: Fix bug. Was always printing 8 nodes X-Git-Tag: V1_2_2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aa64a62c439d80eb0f306350bf50e5c97f49c383;p=modules%2Fsmesh.git Fix bug. Was always printing 8 nodes --- diff --git a/src/SMDS/SMDS_VolumeOfNodes.cxx b/src/SMDS/SMDS_VolumeOfNodes.cxx index c7b308e91..b2a7a547d 100644 --- a/src/SMDS/SMDS_VolumeOfNodes.cxx +++ b/src/SMDS/SMDS_VolumeOfNodes.cxx @@ -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