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
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;
const TVTKSource& aSource = aSubProfile->GetSource();
anAppendFilter->AddInput(aSource.GetPointer());
- aSubProfileArr[anID] = aSubProfile;
+ aSubProfileArr[anID++] = aSubProfile;
}
}
anAppendFilter->Update(); // Fix on VTK