X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FSMDS_MeshCell.hxx;h=413b1265ab6e3f729e8f6587a16de5e33e88deb1;hb=92bb7ceb6e3649e91fc0ad6942e838b79b71cab2;hp=562de10a82bc29216812813d3fc35e0da3e6eb74;hpb=a17b36970bc61da1d664453c615754997c925b18;p=modules%2Fsmesh.git diff --git a/src/SMDS/SMDS_MeshCell.hxx b/src/SMDS/SMDS_MeshCell.hxx index 562de10a8..413b1265a 100644 --- a/src/SMDS/SMDS_MeshCell.hxx +++ b/src/SMDS/SMDS_MeshCell.hxx @@ -33,7 +33,7 @@ public: virtual ~SMDS_MeshCell(); virtual bool ChangeNodes(const SMDS_MeshNode* nodes[], const int nbNodes)= 0; - virtual bool vtkOrder(const SMDS_MeshNode* nodes[], const int nbNodes) {return true; } + virtual bool vtkOrder(const SMDS_MeshNode* nodes[], const int nbNodes) { return true; } static VTKCellType toVtkType (SMDSAbs_EntityType vtkType); static SMDSAbs_EntityType toSmdsType(VTKCellType vtkType); @@ -53,7 +53,7 @@ public: template< class VECT > // interlacedIDs[i] = smdsIDs[ indices[ i ]] static void applyInterlace( const std::vector& interlace, VECT & data) { - if ( interlace.empty() ) return; + if ( interlace.size() < data.size() ) return; VECT tmpData( data.size() ); for ( size_t i = 0; i < data.size(); ++i ) tmpData[i] = data[ interlace[i] ]; @@ -62,7 +62,7 @@ public: template< class VECT > // interlacedIDs[ indices[ i ]] = smdsIDs[i] static void applyInterlaceRev( const std::vector& interlace, VECT & data) { - if ( interlace.empty() ) return; + if ( interlace.size() < data.size() ) return; VECT tmpData( data.size() ); for ( size_t i = 0; i < data.size(); ++i ) tmpData[ interlace[i] ] = data[i];