if ( myIds.Contains( theId ) )
return true;
- for ( int i = 1, n = myMin.size(); i <= n; i++ )
+ for ( size_t i = 0; i < myMin.size(); i++ )
if ( theId >= myMin[i] && theId <= myMax[i] )
return true;
protected:
const SMDS_Mesh* myMesh;
- std::vector< smIdType> myMin;
+ std::vector< smIdType > myMin;
std::vector< smIdType > myMax;
TIDsMap myIds;
///////////////////////////////////////////////////////////////////////////////
const SMDS_MeshNode * SMDS_Mesh::FindNodeVtk(vtkIdType vtkId) const
{
- return myNodeFactory->FindNode( FromVtkToSmds( vtkId ));
+ return myNodeFactory->FindNode( vtkId + 1 );
}
const SMDS_MeshElement * SMDS_Mesh::FindElementVtk(vtkIdType IDelem) const
void SMDS_Mesh::CompactMesh()
{
- return;
this->myCompactTime = this->myModifTime;
bool idsChange = HasNumerationHoles();
par1 = uVec[ i ];
par2 = uVec[ i+1 ];
smIdType nbseg = ( i < (int) nbsegs.size() ) ? nbsegs[i] : nbsegs[0];
- if ( nbseg == 1 )
- {
- theParams.push_back( par2 );
- }
- else
+ if ( nbseg > 1 )
{
segmentSize = ( Params( i+2 ) - Params( i+1 )) * theLength;
eltSize = segmentSize / double( nbseg );
segmentSize, par1, par2, theParams ))
return false;
}
+ theParams.push_back( par2 );
}
theParams.pop_back();