]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix on ID's mapping for MeshOnEntity in case whaen there is no external ID's
authorapo <apo@opencascade.com>
Fri, 2 Sep 2005 09:14:58 +0000 (09:14 +0000)
committerapo <apo@opencascade.com>
Fri, 2 Sep 2005 09:14:58 +0000 (09:14 +0000)
src/CONVERTOR/VISU_Convertor_impl.cxx
src/CONVERTOR/VISU_Convertor_impl.hxx

index 2353f9a15ad2dd747142a540095f701ff2a70e02..adfe24e990d42d176cb018d6c8806004f8f905ea 100644 (file)
@@ -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;
index a79a6bf072d2b79b0b01445abae1656e865885b2..e8201f3b552cfbdef29126dca07cdc362bae50ce 100644 (file)
@@ -312,6 +312,7 @@ namespace VISU
     vtkIdType 
     GetElemObjID(vtkIdType theID) const;
 
+    vtkIdType myStartID;
     TCell2Connect myCell2Connect;
   };
   typedef SharedPtr<TSubMeshImpl> PSubMeshImpl;