From 3ed1955f31aa1473a9e6fc3037fd1e2500859124 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 31 Aug 2005 12:45:21 +0000 Subject: [PATCH] To introduce ID's mapping for Family mesh --- src/CONVERTOR/VISU_Convertor_impl.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CONVERTOR/VISU_Convertor_impl.cxx b/src/CONVERTOR/VISU_Convertor_impl.cxx index 0869c283..31d7396a 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.cxx +++ b/src/CONVERTOR/VISU_Convertor_impl.cxx @@ -269,8 +269,8 @@ namespace VISU vtkIdType anInputID; const TVTKAppendFilter& anAppendFilter = GetFilter(); vtkIdType aID = anAppendFilter->GetCellInputID(theID,anInputID); - const TSubProfileImpl& aSubProfileImpl = mySubProfileArr[anInputID]; - return aSubProfileImpl.GetElemObjID(aID); + PSubProfileImpl aSubProfileImpl = mySubProfileArr[anInputID]; + return aSubProfileImpl->GetElemObjID(aID); } vtkIdType @@ -1159,7 +1159,7 @@ namespace TSubProfileArr& aSubProfileArr = theProfile->mySubProfileArr; aSubProfileArr.resize(aGeom2SubProfile.size()); TGeom2SubProfile::const_iterator anIter = aGeom2SubProfile.begin(); - for(vtkIdType anID = 0; anIter != aGeom2SubProfile.end(); anIter++, anID++){ + for(vtkIdType anID = 0; anIter != aGeom2SubProfile.end(); anIter++){ PSubProfileImpl aSubProfile = anIter->second; if(aSubProfile->myStatus == eRemoveAll) continue; @@ -1172,7 +1172,7 @@ namespace const TVTKSource& aSource = aSubProfile->GetSource(); anAppendFilter->AddInput(aSource.GetPointer()); - aSubProfileArr[anID] = aSubProfile; + aSubProfileArr[anID++] = aSubProfile; } } anAppendFilter->Update(); // Fix on VTK -- 2.39.2