reader = vmtkscripts.vmtkSurfaceReader() reader.InputFileName = 'vesseltree.stl' reader.Execute() networkExtraction = vmtkscripts.vmtkNetworkExtraction() networkExtraction.Surface = reader.Surface networkExtraction.Execute() network = networkExtraction.Network graph = networkExtraction.GraphLayout graphLayoutView = vtk.vtkGraphLayoutView() graphLayoutView.AddRepresentationFromInput(graph) graphLayoutView.ResetCamera() graphLayoutView.Render()
ERROR: In ..\Common\ExecutionModel\vtkExecutive.cxx, line 784 vtkCompositeDataPipeline (00000268620B50A0): Algorithm vtkGraphLayout(000002686195AA90) returned failure for request: vtkInformation (0000026861AE69E0) Debug: Off Modified Time: 121696 Reference Count: 1 Registered Events: (none) Request: REQUEST_DATA_OBJECT FORWARD_DIRECTION: 0 ALGORITHM_AFTER_FORWARD: 1 FROM_OUTPUT_PORT: 0
I want to display the graph and also display the node labels and edge labels and also add edge weights .
Also, I’d like to know how to obtain the topology information of the graph i.e incidence/adjacency matrix and degree of the nodes in the nodes from VTKArray/vtkPolyData
Any suggestioons will be really helpful.