Lines 32-37
Link Here
|
32 |
#include <vtkCellData.h> |
32 |
#include <vtkCellData.h> |
33 |
#include <vtkDataSetAttributes.h> |
33 |
#include <vtkDataSetAttributes.h> |
34 |
#include <vtkDataSetCollection.h> |
34 |
#include <vtkDataSetCollection.h> |
|
|
35 |
#include <vtkExecutive.h> |
35 |
#include <vtkObjectFactory.h> |
36 |
#include <vtkObjectFactory.h> |
36 |
#include <vtkPointData.h> |
37 |
#include <vtkPointData.h> |
37 |
#include <vtkUnstructuredGrid.h> |
38 |
#include <vtkUnstructuredGrid.h> |
Lines 119-126
Link Here
|
119 |
vtkIdType aPntStartId = 0; |
120 |
vtkIdType aPntStartId = 0; |
120 |
vtkIdType aCellStartId = 0; |
121 |
vtkIdType aCellStartId = 0; |
121 |
|
122 |
|
122 |
for(vtkIdType aDataSetId = 0; aDataSetId < this->NumberOfInputs; ++aDataSetId){ |
123 |
for(vtkIdType aDataSetId = 0; aDataSetId < this->GetNumberOfInputConnections(0); ++aDataSetId){ |
123 |
vtkDataSet* aDataSet = (vtkDataSet *)(this->Inputs[aDataSetId]); |
124 |
vtkDataSet* aDataSet = (vtkDataSet *)(this->GetExecutive()->GetInputData(0,aDataSetId)); |
|
|
125 |
|
124 |
// Do mapping of the nodes |
126 |
// Do mapping of the nodes |
125 |
if(!GetSharedPointsDataSet()){ |
127 |
if(!GetSharedPointsDataSet()){ |
126 |
vtkIdType aNbPnts = aDataSet->GetNumberOfPoints(); |
128 |
vtkIdType aNbPnts = aDataSet->GetNumberOfPoints(); |
Lines 265-275
Link Here
|
265 |
|
267 |
|
266 |
numCells = 0; |
268 |
numCells = 0; |
267 |
|
269 |
|
268 |
vtkDataSetAttributes::FieldList cellList(this->NumberOfInputs); |
270 |
vtkDataSetAttributes::FieldList cellList(this->GetNumberOfInputConnections(0)); |
269 |
int firstCD=1; |
271 |
int firstCD=1; |
270 |
|
272 |
|
271 |
for (idx = 0; idx < this->NumberOfInputs; ++idx) { |
273 |
for (idx = 0; idx < this->GetNumberOfInputConnections(0); ++idx) { |
272 |
ds = (vtkDataSet *)(this->Inputs[idx]); |
274 |
ds = (vtkDataSet *)(this->GetExecutive()->GetInputData(0,idx)); |
273 |
if (ds != NULL) { |
275 |
if (ds != NULL) { |
274 |
if ( ds->GetNumberOfPoints() <= 0 && ds->GetNumberOfCells() <= 0 ) { |
276 |
if ( ds->GetNumberOfPoints() <= 0 && ds->GetNumberOfCells() <= 0 ) { |
275 |
continue; //no input, just skip |
277 |
continue; //no input, just skip |
Lines 308-315
Link Here
|
308 |
output->GetPointData()->PassData(GetSharedPointsDataSet()->GetPointData()); |
310 |
output->GetPointData()->PassData(GetSharedPointsDataSet()->GetPointData()); |
309 |
|
311 |
|
310 |
// 2.cells |
312 |
// 2.cells |
311 |
for (idx = 0; idx < this->NumberOfInputs; ++idx) { |
313 |
for (idx = 0; idx < this->GetNumberOfInputConnections(0); ++idx) { |
312 |
ds = (vtkDataSet *)(this->Inputs[idx]); |
314 |
ds = (vtkDataSet *)(this->GetExecutive()->GetInputData(0,idx)); |
313 |
if (ds != NULL) { |
315 |
if (ds != NULL) { |
314 |
numCells = ds->GetNumberOfCells(); |
316 |
numCells = ds->GetNumberOfCells(); |
315 |
cd = ds->GetCellData(); |
317 |
cd = ds->GetCellData(); |