Commit 59332d6d authored by Bill Lorensen's avatar Bill Lorensen
Browse files

ERR: Execute improperly passing point data. Used CopyData instead.

parent 248202ac
......@@ -59,6 +59,7 @@ void vtkExtractEdges::Execute()
int pt1 = 0;
vtkEdgeTable *edgeTable;
vtkCell *cell, *edge;
vtkPointData *pd, *outPD;
vtkDebugMacro(<<"Executing edge extractor");
//
......@@ -80,6 +81,10 @@ void vtkExtractEdges::Execute()
newLines = new vtkCellArray;
newLines->EstimateSize(numPts*4,2);
pd = input->GetPointData();
outPD = output->GetPointData();
outPD->CopyAllocate(pd,numPts);
//
// Loop over all cells, extracting non-visited edges.
//
......@@ -96,7 +101,7 @@ void vtkExtractEdges::Execute()
{
pt2 = edge->PointIds.GetId(i);
pts[1] = newPts->InsertNextPoint(input->GetPoint(pt2));
outPD->CopyData (pd,pt2,pts[1]);
if ( i > 0 && !edgeTable->IsEdge(pt1,pt2) )
{
edgeTable->InsertEdge(pt1, pt2);
......@@ -119,7 +124,6 @@ void vtkExtractEdges::Execute()
output->SetLines(newLines);
newLines->Delete();
output->GetPointData()->PassData(input->GetPointData());
output->Squeeze();
}
......
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