-// Copyright (C) 2010-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2010-2020 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include "InterpKernelAutoPtr.hxx"
//vtkCxxRevisionMacro(vtkELNOFilter, "$Revision: 1.2.2.2 $");
-vtkStandardNewMacro(vtkELNOFilter);
+vtkStandardNewMacro(vtkELNOFilter)
vtkELNOFilter::vtkELNOFilter()
{
vtkUnstructuredGrid *usgIn(vtkUnstructuredGrid::SafeDownCast( input[0]->GetInformationObject(0)->Get(vtkDataObject::DATA_OBJECT())));
vtkPolyData *pdOut(vtkPolyData::SafeDownCast(output->GetInformationObject(0)->Get(vtkDataObject::DATA_OBJECT())));
- vtkDataArray *array(this->GetInputArrayToProcess(0, input));
+ //vtkDataArray *array(this->GetInputArrayToProcess(0, input)); // todo: unused
vtkIdTypeArray* offsets(vtkIdTypeArray::SafeDownCast(this->GetInputArrayToProcess(0, input)));
if(usgIn == NULL || offsets == NULL || pdOut == NULL)
vtkIdType start(0);
for(vtkIdType cellId = 0; cellId < ncell; cellId++)
{
- vtkIdType offset(offsets->GetValue(cellId));
+ //vtkIdType offset(offsets->GetValue(cellId)); // todo: unused
int cellType(usgIn->GetCellType(cellId));
// a simple check to see if a scheme really exists for this cell type.
// should not happen if the cell type has not been modified.
for(vtkIdType cellId=0;cellId<nbCellsInput;cellId++)
{
vtkCell *cell(usgIn->GetCell(cellId));
- vtkIdType nbPoints(cell->GetNumberOfPoints()),offset(offsetPtr[cellId]);
+ vtkIdType nbPoints(cell->GetNumberOfPoints())/*,offset(offsetPtr[cellId])*/; // todo: offset is unused
for(vtkIdType j=0;j<nbPoints;j++,zeId++)
newArray->SetTuple(zeId,offsetPtr[cellId]+j,data);
}