[vtkusers] Obtain Points from Polydata

Matias Montroull matimontg at gmail.com
Tue Jan 14 23:04:53 EST 2014


I guess if I can do this:

  vtkPolyData polydata = vtkPolyData.New();
                polydata.SetPoints(points);
Then there should be a way to extract the points from a Mesh


On Tue, Jan 14, 2014 at 7:37 PM, Matias Montroull <matimontg at gmail.com>wrote:

> I would think yes..
>
> So, can I set the input connection to a Mesh in this line?
> writer->SetInputConnection(sphereSource->GetOutputPort());
> I have a vtkPolyDataMapper and vtkPolyDataNormals objects to generate the
> mesh so I was wondering if I could use any of these as inputo for the
> writer?
>
> Thanks!
>
>
> On Tue, Jan 14, 2014 at 6:13 PM, David Doria <daviddoria at gmail.com> wrote:
>
>> On Tue, Jan 14, 2014 at 4:08 PM, Matias Montroull <matimontg at gmail.com>wrote:
>>
>>> HI,
>>>
>>> I was looking at this example:
>>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadPlainText
>>>
>>> How I can do the inverse, that is getting all the points from a mesh?
>>>
>>> Thanks!
>>>
>>
>> Is this what you're looking for?
>>
>> http://www.vtk.org/doc/nightly/html/classvtkSimplePointsWriter.html
>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/SimplePointsWriter
>>
>> David
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140115/fd624b50/attachment.html>


More information about the vtkusers mailing list