return false;
vtkIdType nFaces = 0;
- vtkIdType* ptIds = 0;
- getGrid()->GetFaceStream( GetVtkID(), nFaces, ptIds );
+ vtkIdType *ptIds;
+ vtkIdType const *tmp(nullptr);
+ getGrid()->GetFaceStream( GetVtkID(), nFaces, tmp );
+ std::copy(tmp, tmp+nFaces, ptIds);
// stream size and nb faces should not change
return SMDS_MeshCell::GetNode( ind );
vtkIdType nFaces = 0;
- vtkIdType* ptIds = 0;
+ vtkIdType const *ptIds(nullptr);
getGrid()->GetFaceStream( GetVtkID(), nFaces, ptIds );
int id = 0, nbPoints = 0;
for (int i = 0; i < nFaces; i++)
return SMDS_MeshCell::NbNodes();
vtkIdType nFaces = 0;
- vtkIdType* ptIds = 0;
+ vtkIdType const *ptIds(nullptr);
getGrid()->GetFaceStream( GetVtkID(), nFaces, ptIds );
int id = 0, nbPoints = 0;
for (int i = 0; i < nFaces; i++)
return SMDS_MeshCell::NbFaces();
vtkIdType nFaces = 0;
- vtkIdType* ptIds = 0;
+ vtkIdType const *ptIds(nullptr);
getGrid()->GetFaceStream( GetVtkID(), nFaces, ptIds );
return nFaces;
return SMDS_MeshCell::NbEdges();
vtkIdType nFaces = 0;
- vtkIdType* ptIds = 0;
+ vtkIdType const *ptIds(nullptr);
getGrid()->GetFaceStream( GetVtkID(), nFaces, ptIds );
int id = 0, nbEdges = 0;
for (int i = 0; i < nFaces; i++)
return SMDS_MeshCell::GetNodeIndex( node );
vtkIdType nFaces = 0;
- vtkIdType* ptIds = 0;
+ vtkIdType const *ptIds(nullptr);
getGrid()->GetFaceStream( GetVtkID(), nFaces, ptIds );
int id = 0;
for (int iF = 0; iF < nFaces; iF++)
return SMDS_VolumeTool( this ).NbFaceNodes( face_ind-1 );
vtkIdType nFaces = 0;
- vtkIdType* ptIds = 0;
+ vtkIdType const *ptIds(nullptr);
getGrid()->GetFaceStream( GetVtkID(), nFaces, ptIds );
int id = 0, nbNodes = 0;
for (int i = 0; i < nFaces; i++)
return SMDS_VolumeTool( this ).GetFaceNodes( face_ind-1 )[ node_ind - 1 ];
vtkIdType nFaces = 0;
- vtkIdType* ptIds = 0;
+ vtkIdType const *ptIds(nullptr);
getGrid()->GetFaceStream( GetVtkID(), nFaces, ptIds);
int id = 0;
for (int i = 0; i < nFaces; i++)
if ( IsPoly() )
{
vtkIdType nFaces = 0;
- vtkIdType* ptIds = 0;
+ vtkIdType const *ptIds(nullptr);
getGrid()->GetFaceStream( GetVtkID(), nFaces, ptIds );
int id = 0;
for (int i = 0; i < nFaces; i++)