Extracting Lines from Polydata

Randy Heiland heiland at ncsa.uiuc.edu
Mon Sep 20 07:26:05 EDT 1999


On Sep 20, 12:54pm, Mykola Khotyaintsev wrote:
> Subject: Extracting Lines from Polydata
> Hello VTK-users,
>
> I have a vtkPolyData, which is a set of lines. I whant to
> display lines number n, n+1, ... , m.
>
> What Filter do  I have to use?

If I understand your question, simply the following (in Python):

pdatRead = vtkPolyDataReader()
pdatRead.SetFileName(fname)

mapper = vtkPolyDataMapper()
mapper.SetInput(pdatRead.GetOutput())
actor = vtkActor()
actor.SetMapper(mapper)
 ...


-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list