From: apo Date: Mon, 9 Jun 2008 10:40:12 +0000 (+0000) Subject: Fix for [SALOME platform] VISU 0019874: EDF 746 VISU: Picking alphanumeric Gauss X-Git-Tag: TG_VISU_2008_2008-06-26~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1fe151c06d23e4629d4a7ccbba77b71b97be7935;p=modules%2Fvisu.git Fix for [SALOME platform] VISU 0019874: EDF 746 VISU: Picking alphanumeric Gauss (merged from V4_1_0_maintainance) --- diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index eaedc649..704eb7ee 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -1273,8 +1273,7 @@ namespace VISU //--------------------------------------------------------------- vtkIdType TMEDGaussSubMesh - ::GetVTKID(const TGaussPointID& theID, - vtkIdType theStartID) const + ::GetVTKID( const TGaussPointID& theID ) const { vtkIdType aResult = -1; @@ -1288,9 +1287,9 @@ namespace VISU if ( myIsElemNum ) { aCellID = GetElemVTKID( aCellID ); } else - aCellID -= theStartID; + aCellID -= myStartID; - return aCellID * aNbPoints + aLocalPntID + theStartID; + return aCellID * aNbPoints + aLocalPntID + myStartID; } diff --git a/src/CONVERTOR/VISU_MedConvertor.hxx b/src/CONVERTOR/VISU_MedConvertor.hxx index 4529ecb3..ec1f3cee 100644 --- a/src/CONVERTOR/VISU_MedConvertor.hxx +++ b/src/CONVERTOR/VISU_MedConvertor.hxx @@ -245,8 +245,7 @@ namespace VISU virtual vtkIdType - GetVTKID(const TGaussPointID& theID, - vtkIdType theStartID) const; + GetVTKID( const TGaussPointID& theID ) const; //! Gets memory size used by the instance (bytes). virtual