Commit 31d834a4 authored by David Thompson's avatar David Thompson
Browse files

Don't forget to copy polyhedron cell-data...

... when appending datasets.

Also, clear out point-list when GetFaceStream fails.

Change-Id: Icf502a95ec8bfacc634291c6ef749d3cbdff5df9
parent 2f4a9cad
......@@ -1326,13 +1326,13 @@ void vtkUnstructuredGrid::GetFaceStream(vtkIdType cellId, vtkIdList *ptIds)
return;
}
ptIds->Reset();
if (!this->Faces || !this->FaceLocations)
{
return;
}
ptIds->Reset();
vtkIdType loc = this->FaceLocations->GetValue(cellId);
vtkIdType* facePtr = this->Faces->GetPointer(loc);
......
......@@ -312,7 +312,8 @@ int vtkAppendFilter::RequestData(
newPtIds->InsertNextId(*(facePtIds++)+ptOffset);
}
}
output->InsertNextCell(VTK_POLYHEDRON,nfaces,newPtIds->GetPointer(0));
newCellId = output->InsertNextCell(VTK_POLYHEDRON,nfaces,newPtIds->GetPointer(0));
outputCD->CopyData(cellList,cd,inputCount,cellId,newCellId);
}
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment