[vtkusers] Obtain Points from Polydata

lgriffiths lgriffiths.aero at gmail.com
Wed Jan 15 06:50:31 EST 2014


If you pass the mapper I would expect it to fail it isnt a DataSet or a
filter which can return a DataSet with a .GetOuput() method or a connection
with .GetOutputPort()

If you print to screen YourPolydataNormals.GetOutput() you can see the type
that it returns (vtkPolyData). (or check the class here
(http://www.vtk.org/doc/nightly/html) You can use both the .GetOutput() or
the .GetOutputPort()

So could as you suggested pass directly the polydata, although a DataSet is
not a filter, you cannot use .GetOutputPort() so will not work with
.SetInputConnection(). Instead you need to go down this rout:

simplePointsWriter.SetInputData(polyData)

you could also do (for filters this is not the preferred approach, remember
to filter.Update() )
simplePointsWriter.SetInputData(polyDataNormals.GetOutput())


You could also do something like this.
http://vtk.1045678.n5.nabble.com/Polydata-get-point-coordinates-td3214274.html





--
View this message in context: http://vtk.1045678.n5.nabble.com/Obtain-Points-from-Polydata-tp5725372p5725397.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list