::GetVTKOutput()
{
if(!myFilter.GetPointer()){
- const TVTKAppendFilter& anAppendFilter = myIDMapper.GetFilter();
+ const TVTKAppendFilter& anAppendFilter = myIDMapper->GetFilter();
TVTKOutput* aGeometry = anAppendFilter->GetOutput();
const TVTKSource& aSource = mySource.GetSource();
TIDMapperFilter
::GetNodeObjID(vtkIdType theID) const
{
- return myIDMapper.GetNodeObjID(theID);
+ return myIDMapper->GetNodeObjID(theID);
}
vtkIdType
TIDMapperFilter
::GetNodeVTKID(vtkIdType theID) const
{
- return myIDMapper.GetNodeVTKID(theID);
+ return myIDMapper->GetNodeVTKID(theID);
}
vtkFloatingPointType*
TIDMapperFilter
::GetNodeCoord(vtkIdType theObjID)
{
- return myIDMapper.GetNodeCoord(theObjID);
+ return myIDMapper->GetNodeCoord(theObjID);
}
vtkIdType
TIDMapperFilter
::GetElemObjID(vtkIdType theID) const
{
- return myIDMapper.GetElemObjID(theID);
+ return myIDMapper->GetElemObjID(theID);
}
vtkIdType
TIDMapperFilter
::GetElemVTKID(vtkIdType theID) const
{
- return myIDMapper.GetElemVTKID(theID);
+ return myIDMapper->GetElemVTKID(theID);
}
vtkCell*
TIDMapperFilter
::GetElemCell(vtkIdType theObjID)
{
- return myIDMapper.GetElemCell(theObjID);
+ return myIDMapper->GetElemCell(theObjID);
}
vtkIdType anID = *aSubMeshIDIter;
PrintCells(i,aConnectivity,anArray[anID]);
aCellTypesArray->SetValue(j++,(unsigned char)aVGeom);
-
- anElemObj2VTKID[anID] = i;
- aMeshID[i] = anID;
+ vtkIdType anObjID = aSubMesh.GetElemObjID(anID);
+ anElemObj2VTKID[anObjID] = i;
+ aMeshID[i] = anObjID;
}
}
vtkIdType *pts = 0, npts = 0;
TFamilyArr& aFamilyArr = aGroup->myFamilyArr;
aFamilyArr.resize(aFamilySet.size());
- for(vtkIdType anID = 0; anIter != aFamilySet.end(); anIter++){
+ for(vtkIdType anID = 0; anIter != aFamilySet.end(); anIter++, anID++){
PFamilyImpl aFamily = *anIter;
const std::string& aFamilyName = aFamily->myName;
const VISU::TEntity& anEntity = aFamily->myEntity;
VISU::TVTKOutput* anOutput = anIDMapper->GetVTKOutput();
anAppendFilter->AddInput(anOutput);
+ vtkIdType aStartID = anElemObj2VTKID.size();
vtkIdType aNbCells = anOutput->GetNumberOfCells();
for(vtkIdType aCellID = 0; aCellID < aNbCells; aCellID++){
- anElemObj2VTKID[aFamily->GetElemObjID(aCellID)] = aCellID;
+ anElemObj2VTKID[aFamily->GetElemObjID(aCellID)] = aStartID + aCellID;
}
aFamilyArr[anID] = aFamily;
}