Lines 119-126
Link Here
|
119 |
vtkIdType aPntStartId = 0; |
119 |
vtkIdType aPntStartId = 0; |
120 |
vtkIdType aCellStartId = 0; |
120 |
vtkIdType aCellStartId = 0; |
121 |
|
121 |
|
122 |
for(vtkIdType aDataSetId = 0; aDataSetId < this->NumberOfInputs; ++aDataSetId){ |
122 |
for(vtkIdType aDataSetId = 0; aDataSetId < this->InputList->GetNumberOfItems(); ++aDataSetId){ |
123 |
vtkDataSet* aDataSet = (vtkDataSet *)(this->Inputs[aDataSetId]); |
123 |
vtkDataSet* aDataSet = (vtkDataSet *)(this->GetInput(aDataSetId)); |
124 |
// Do mapping of the nodes |
124 |
// Do mapping of the nodes |
125 |
if(!GetSharedPointsDataSet()){ |
125 |
if(!GetSharedPointsDataSet()){ |
126 |
vtkIdType aNbPnts = aDataSet->GetNumberOfPoints(); |
126 |
vtkIdType aNbPnts = aDataSet->GetNumberOfPoints(); |
Lines 265-275
Link Here
|
265 |
|
265 |
|
266 |
numCells = 0; |
266 |
numCells = 0; |
267 |
|
267 |
|
268 |
vtkDataSetAttributes::FieldList cellList(this->NumberOfInputs); |
268 |
vtkDataSetAttributes::FieldList cellList(this->InputList->GetNumberOfItems()); |
269 |
int firstCD=1; |
269 |
int firstCD=1; |
270 |
|
270 |
|
271 |
for (idx = 0; idx < this->NumberOfInputs; ++idx) { |
271 |
for (idx = 0; idx < this->InputList->GetNumberOfItems(); ++idx) { |
272 |
ds = (vtkDataSet *)(this->Inputs[idx]); |
272 |
ds = (vtkDataSet *)(this->GetInput(idx)); |
273 |
if (ds != NULL) { |
273 |
if (ds != NULL) { |
274 |
if ( ds->GetNumberOfPoints() <= 0 && ds->GetNumberOfCells() <= 0 ) { |
274 |
if ( ds->GetNumberOfPoints() <= 0 && ds->GetNumberOfCells() <= 0 ) { |
275 |
continue; //no input, just skip |
275 |
continue; //no input, just skip |
Lines 308-315
Link Here
|
308 |
output->GetPointData()->PassData(GetSharedPointsDataSet()->GetPointData()); |
308 |
output->GetPointData()->PassData(GetSharedPointsDataSet()->GetPointData()); |
309 |
|
309 |
|
310 |
// 2.cells |
310 |
// 2.cells |
311 |
for (idx = 0; idx < this->NumberOfInputs; ++idx) { |
311 |
for (idx = 0; idx < this->InputList->GetNumberOfItems(); ++idx) { |
312 |
ds = (vtkDataSet *)(this->Inputs[idx]); |
312 |
ds = (vtkDataSet *)(this->GetInput(idx)); |
313 |
if (ds != NULL) { |
313 |
if (ds != NULL) { |
314 |
numCells = ds->GetNumberOfCells(); |
314 |
numCells = ds->GetNumberOfCells(); |
315 |
cd = ds->GetCellData(); |
315 |
cd = ds->GetCellData(); |