[vtkusers] Creating a polydata of edges (lines) from a vtkGraph

Jeff Baumes jeff.baumes at kitware.com
Wed Nov 11 13:47:15 EST 2009


>
> I tried to do that, but it said I needed to select a layout strategy.
> I tried to use vtkAssignCoordinatesLayoutStrategy
>
> http://www.rpi.edu/~doriad/VTK_List/GraphCoordinateAssignment/
>
> but I get the following error:
> vtkStreamingDemandDrivenPipeline (0x9761220): Algorithm
> vtkAssignCoordinates(0x975dfb0) returned failure for request:
> vtkInformation (0x9761e18)
>
>
If you are setting the points directly, you don't need to use vtkGraphLayout
at all. vtkAssignCoordinates is for setting the points on a graph from x, y,
z arrays in the VertexData.

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091111/42174531/attachment.htm>


More information about the vtkusers mailing list