From aa64a62c439d80eb0f306350bf50e5c97f49c383 Mon Sep 17 00:00:00 2001 From: jrt Date: Fri, 12 Sep 2003 15:11:29 +0000 Subject: [PATCH] Fix bug. Was always printing 8 nodes --- src/SMDS/SMDS_VolumeOfNodes.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2