From 0c3f7a80027f50a0e32f29d077e5029f819764dc Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 31 Aug 2005 06:00:06 +0000 Subject: [PATCH] To avoid compilation errors --- src/CONVERTOR/VISU_Convertor_impl.cxx | 9 ++------- src/CONVERTOR/VISU_Convertor_impl.hxx | 8 +++++--- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/CONVERTOR/VISU_Convertor_impl.cxx b/src/CONVERTOR/VISU_Convertor_impl.cxx index 82568e22..b40c5c0e 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.cxx +++ b/src/CONVERTOR/VISU_Convertor_impl.cxx @@ -365,19 +365,14 @@ namespace VISU TMeshOnEntityImpl ::GetElemVTKID(vtkIdType theID) const { - TObj2VTKID::const_iterator anIter = std::find(myObj2VTKID.begin(), - myObj2VTKID.end(), - theID); - if(anIter != myObj2VTKID.end()) - return *anIter; - return -1; + return theID; } vtkIdType TMeshOnEntityImpl ::GetElemObjID(vtkIdType theID) const { - return myObj2VTKID[theID]; + return theID; } diff --git a/src/CONVERTOR/VISU_Convertor_impl.hxx b/src/CONVERTOR/VISU_Convertor_impl.hxx index 7e5eed04..f0ea15b8 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.hxx +++ b/src/CONVERTOR/VISU_Convertor_impl.hxx @@ -279,15 +279,17 @@ namespace VISU typedef TVector TCell2Connect; typedef std::map TGeom2Cell2Connect; - typedef TVector TObj2VTKID; - struct TMeshOnEntityImpl: virtual TMeshOnEntity, virtual TSource { TGeom2Cell2Connect myGeom2Cell2Connect; virtual vtkIdType - GetElemObjID(int theVtkI) const; + GetElemVTKID(vtkIdType theID) const; + + virtual + vtkIdType + GetElemObjID(vtkIdType theID) const; TObj2VTKID myObj2VTKID; }; -- 2.39.2