[vtkusers] How to Recover vtkPolyData from vtkThreshold
Mathieu Malaterre
mathieu.malaterre at kitware.com
Tue Jun 15 17:03:16 EDT 2004
John Platt wrote:
> Hi Users,
>
>
>
> I would like to render selective cells from vtkPolyData. I tried
>
>
>
> vtkPolyData > vtkThreshold > vtkPolyDataMapper
>
>
>
> but this does not compile because the output of vtkThreshold is of type
> vtkUnstructuredGrid.
>
>
>
> Is there anyway of recovering the output of vtkThreshold as vtkPolyData
> or an alternative filter?
You can use vtkDataSetMapper or vtkGeometryFilter to display a
vtkUnstructuredGrid.
Otherwise if you know the types of elements you are using you can create
your own vtkPolyData after the vtkThreshold (don't forget to call
Update) and shallow copy all triangles/quad/strips/points...
HTH
Mathieu
More information about the vtkusers
mailing list