Commit fc0ee6cf authored by David Thompson's avatar David Thompson
Browse files

Reset point ID list when appending polyhedra.

Change-Id: I0d5ef2af0323e57ef08de64235a34f4672f3bb9f
parent ee3a7c30
......@@ -2840,7 +2840,6 @@ void vtkPolyhedron::Contour(double value,
this->Internal->RestoreFaceArrayAndEdgeTable(this->Faces, this->EdgeTable);
}
//----------------------------------------------------------------------------
void vtkPolyhedron::Clip(double value,
vtkDataArray *pointScalars,
......@@ -2948,6 +2947,10 @@ void vtkPolyhedron::Clip(double value,
}
// polyhedron is all inside
// FIXME: Documentation needed:
// 1. How this can ever happen given the IntersectWithContour call above?
// 2. If it can happen, how+why is it different than the code above that
// copies the cell to the output?
if (ret == 1)
{
cellVector.push_back(this->Faces->GetValue(0));
......
......@@ -314,6 +314,7 @@ int vtkAppendFilter::RequestData(
}
newCellId = output->InsertNextCell(VTK_POLYHEDRON,nfaces,newPtIds->GetPointer(0));
outputCD->CopyData(cellList,cd,inputCount,cellId,newCellId);
newPtIds->Reset ();
}
else
{
......
......@@ -3437,7 +3437,7 @@ void vtkTableBasedClipDataSet::ClipUnstructuredGridData( vtkDataSet * inputGrd,
inputPts = NULL;
// the stuffs that can not be clipped
// the stuff that can not be clipped
if ( numCants > 0 )
{
vtkUnstructuredGrid * vtkUGrid = vtkUnstructuredGrid::New();
......
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