From 9c4a37568ebbc9dcfca2f0bf72d3a637e7db9311 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 2 Sep 2005 09:14:58 +0000 Subject: [PATCH] Fix on ID's mapping for MeshOnEntity in case whaen there is no external ID's --- src/CONVERTOR/VISU_Convertor_impl.cxx | 3 ++- src/CONVERTOR/VISU_Convertor_impl.hxx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CONVERTOR/VISU_Convertor_impl.cxx b/src/CONVERTOR/VISU_Convertor_impl.cxx index 2353f9a1..adfe24e9 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.cxx +++ b/src/CONVERTOR/VISU_Convertor_impl.cxx @@ -384,7 +384,7 @@ namespace VISU TSubMeshImpl ::GetElemObjID(vtkIdType theID) const { - return theID; + return myStartID + theID; } @@ -1504,6 +1504,7 @@ VISU_Convertor_impl GetCellsOnSubMesh(aSource,aMeshOnEntity,aSubMesh,aGeom); anAppendFilter->AddInput(aSource.GetPointer()); + aSubMesh->myStartID = aCellID; vtkIdType aNbCells = aSource->GetNumberOfCells(); for(vtkIdType aCell = 0; aCell < aNbCells; aCell++, aCellID++){ anElemObj2VTKID[aSubMesh->GetElemObjID(aCell)] = aCellID; diff --git a/src/CONVERTOR/VISU_Convertor_impl.hxx b/src/CONVERTOR/VISU_Convertor_impl.hxx index a79a6bf0..e8201f3b 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.hxx +++ b/src/CONVERTOR/VISU_Convertor_impl.hxx @@ -312,6 +312,7 @@ namespace VISU vtkIdType GetElemObjID(vtkIdType theID) const; + vtkIdType myStartID; TCell2Connect myCell2Connect; }; typedef SharedPtr PSubMeshImpl; -- 2.39.2