From: apo Date: Fri, 2 Sep 2005 09:14:58 +0000 (+0000) Subject: Fix on ID's mapping for MeshOnEntity in case whaen there is no external ID's X-Git-Tag: BR-D5-38-2003_D2005-12-09~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9c4a37568ebbc9dcfca2f0bf72d3a637e7db9311;p=modules%2Fvisu.git Fix on ID's mapping for MeshOnEntity in case whaen there is no external ID's --- 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;