aCellTypesArray->SetNumberOfComponents(1);
aCellTypesArray->SetNumberOfTuples(aNbCells);
- VISU::TID2ID& anElemObj2VTKID = theMeshOnEntity->myElemObj2VTKID;
for(vtkIdType anID = 0; anID < aNbCells; anID++){
PrintCells(anID,aConnectivity,anArray[anID]);
aCellTypesArray->SetValue(anID,(unsigned char)theGeom);
- anElemObj2VTKID[theSubMesh->GetElemObjID(anID)] = anID;
}
vtkIdType *pts = 0, npts = 0;
const TGeom2SubMesh& aGeom2SubMesh = aMeshOnEntity->myGeom2SubMesh;
TGeom2SubMesh::const_iterator anIter = aGeom2SubMesh.begin();
+
+ TID2ID& anElemObj2VTKID = aMeshOnEntity->myElemObj2VTKID;
TSubMeshArr& aSubMeshArr = aMeshOnEntity->mySubMeshArr;
aSubMeshArr.resize(aGeom2SubMesh.size());
- for(vtkIdType anID = 0; anIter != aGeom2SubMesh.end(); anIter++, anID++){
+
+ for(vtkIdType anID = 0, aCellID = 0; anIter != aGeom2SubMesh.end(); anIter++, anID++){
const vtkIdType& aGeom = anIter->first;
PSubMeshImpl aSubMesh = anIter->second;
const TVTKSource& aSource = aSubMesh->GetSource();
GetCellsOnSubMesh(aSource,aMeshOnEntity,aSubMesh,aGeom);
anAppendFilter->AddInput(aSource.GetPointer());
+ vtkIdType aNbCells = aSource->GetNumberOfCells();
+ for(vtkIdType aCell = 0; aCell < aNbCells; aCell++, aCellID++){
+ anElemObj2VTKID[aSubMesh->GetElemObjID(aCell)] = aCellID;
+ }
aSubMeshArr[anID] = aSubMesh;
}
aMeshOnEntity->myNamedPointCoords = aMesh->myNamedPointCoords;