Skip to content
Snippets Groups Projects
Commit 50dd94f7 authored by Astrid Beyer's avatar Astrid Beyer
Browse files

feat: translate in dot file

parent c320a040
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
#include "vtkPolyDataToGraph.h"
#include "vtkBoostGraphAdapter.h"
#include <vtkNew.h>
#include <boost/graph/graphviz.hpp>
#include <vtkCallbackCommand.h>
......@@ -72,7 +73,8 @@ int main(int argc, char *argv[])
reader->Update();
// VTK_CREATE(vtkPolyDataToGraph, filter);
vtkSmartPointer<vtkPolyDataToGraph> filter;
// vtkSmartPointer<vtkPolyDataToGraph> filter;
vtkNew<vtkPolyDataToGraph> filter;
filter->SetInputConnection(0, reader->GetOutputPort());
filter->AddObserver(vtkCommand::AnyEvent, eventCallbackVTK);
filter->Update();
......
......@@ -42,6 +42,11 @@ int vtkMeshToGraph::FillOutputPortInformation(
}
*/
vtkPolyDataToGraph *vtkPolyDataToGraph::New()
{
return new vtkPolyDataToGraph;
}
//----------------------------------------------------------------------------
int vtkPolyDataToGraph::FillInputPortInformation(
int vtkNotUsed(port), vtkInformation *info)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment