Fix bug. Was always printing 8 nodes

This commit is contained in:
jrt 2003-09-12 15:11:29 +00:00
parent 7124ef481e
commit aa64a62c43

View File

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