[vtkusers] vtkPolyLine create a line
David Doria
daviddoria at gmail.com
Thu May 24 07:33:52 EDT 2012
On Thu, May 24, 2012 at 5:37 AM, Jonathan Ruiz Peinado
<jonathan.ruiz3 at gmail.com> wrote:
> Hi I'm trying to do a simple line using vtkPolyLine, to pass it
> to vtkSplineFilter.
>
> This
> example http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/PolyLine
> shows how to do it but is using some methods that I can't find in my vtk
> libs "vtkPolyLine.GetPointIds()"
>
>
> This code use to works but I don't know how it does
>
> polyLine.SetPoints(pathPoints);
> polyLine.SetLines(cellArray);
>
> vtkPoints pathPoints, has 2 or more points
> but not sure what I've to do with the cellArray, ¿ what I've to put in
> there?.
>
> ¿ Do somebody got some example about how to do it or can tell me how it
> works ?
>
> Thanks!
Once you get it to work in Python, if you would add an example here:
http://www.vtk.org/Wiki/VTK/Examples/Python/GeometricObjects/Display/PolyLine
that would be great.
David
More information about the vtkusers
mailing list