[vtk-developers] Adding vertex output to vtkGraphToPolyData

Jeff Baumes jeff.baumes at kitware.com
Wed Mar 31 17:04:53 EDT 2010


It's safest to use vtkGraphToPoints followed by a glyph filter to do
the vertices. If there are curved edges, vtkGraphToPolyData creates
additional points for internal edge points, which you would not want
to glyph.

Jeff

On Wed, Mar 31, 2010 at 4:34 PM, Moreland, Kenneth <kmorel at sandia.gov> wrote:
> You could get the same effect by using the glyph filter.
>
> -Ken
>
>
> On 3/31/10 2:30 PM, "David Doria" <daviddoria+vtk at gmail.com> wrote:
>
> Would adding vertex output to vtkGraphToPolyData be a welcome
> addition? That is, it currently makes all of the edges in the graph a
> vtkLine in the output polydata, but I'm imagining an option
> SetVertexOutputOn() that makes all of there nodes in the graph a
> vertex in the output polydata and copies the VertexData not only to
> the PointData, but also to the CellData (on the new vertices).
>
> The motivation for this is I am doing a graph cut so the nodes of the
> graph are labeled and now I am trying to see the resulting groups.
>
> Thanks,
>
> David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>
>
>
>    ****      Kenneth Moreland
>     ***      Sandia National Laboratories
> ***********
> *** *** ***  email: kmorel at sandia.gov
> **  ***  **  phone: (505) 844-8919
>     ***      web:   http://www.cs.unm.edu/~kmorel
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>



More information about the vtk-developers mailing list