[vtkusers] Obtain Points from Polydata

Matias Montroull matimontg at gmail.com
Tue Jan 14 17:37:31 EST 2014


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/20140114/b0dec2b0/attachment.html>


More information about the vtkusers mailing list