From: apo Date: Wed, 31 Aug 2005 12:45:21 +0000 (+0000) Subject: To introduce ID's mapping for Family mesh X-Git-Tag: BR-D5-38-2003_D2005-12-09~57 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3ed1955f31aa1473a9e6fc3037fd1e2500859124;p=modules%2Fvisu.git To introduce ID's mapping for Family mesh --- 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