[vtkusers] vtkPolyLine create a line

Sebastien Jourdain sebastien.jourdain at kitware.com
Thu May 24 07:58:21 EDT 2012


You can also look at the VTK file format guide. That document somehow
explain the different data structure available.

http://vtk.org/VTK/img/file-formats.pdf

On Thu, May 24, 2012 at 7:33 AM, David Doria <daviddoria at gmail.com> wrote:
> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list