Commit 5f388d66 authored by Timothy M. Shead's avatar Timothy M. Shead
Browse files

BUG: error copying edge attributes when using a vertex selection as input to...

BUG: error copying edge attributes when using a vertex selection as input to vtkExtractSelectedGraph
parent 3a429910
......@@ -44,7 +44,7 @@
#include <vtksys/stl/map>
vtkCxxRevisionMacro(vtkExtractSelectedGraph, "1.16");
vtkCxxRevisionMacro(vtkExtractSelectedGraph, "1.17");
vtkStandardNewMacro(vtkExtractSelectedGraph);
//----------------------------------------------------------------------------
vtkExtractSelectedGraph::vtkExtractSelectedGraph()
......@@ -284,7 +284,7 @@ int vtkExtractSelectedGraph::RequestData(
//
// Vertex selection
//
double pt[3];
vtkPoints *inputPoints = input->GetPoints();
vtkSmartPointer<vtkPoints> outputPoints =
......@@ -367,11 +367,11 @@ int vtkExtractSelectedGraph::RequestData(
vtkDataSetAttributes *builderEdgeData = 0;
if (directed)
{
builderEdgeData = dirBuilder->GetVertexData();
builderEdgeData = dirBuilder->GetEdgeData();
}
else
{
builderEdgeData = undirBuilder->GetVertexData();
builderEdgeData = undirBuilder->GetEdgeData();
}
builderEdgeData->CopyAllocate(inputEdgeData);
......
Supports Markdown
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