Make SMESH_creating_meshes_ex07 test OK

This commit is contained in:
Anthony Geay 2020-03-02 10:43:36 +01:00
parent 76e2778111
commit 0f33e74889

View File

@ -490,10 +490,10 @@ void SMDS_MeshCell::init( SMDSAbs_EntityType theEntity,
bool SMDS_MeshCell::ChangeNodes(const SMDS_MeshNode* nodes[], const int theNbNodes)
{
vtkIdType npts = 0;
vtkIdType *pts;
vtkIdType *pts(nullptr);
vtkIdType const *tmp(nullptr);
getGrid()->GetCellPoints( GetVtkID(), npts, tmp );
std::copy(tmp,tmp+npts,pts);
pts = const_cast<vtkIdType *>(tmp);
if ( theNbNodes != npts )
{
MESSAGE("ChangeNodes problem: not the same number of nodes " << npts << " -> " << theNbNodes);