[vtkusers] delete an array from a polydata

Andy Bauer andy.bauer at kitware.com
Tue Aug 27 22:06:53 EDT 2013


Hi,

If you want to do it through a filter (i.e. in a pipeline) you should use
vtkPassArrays. If you're just operating on a single vtkPolyData (e.g. in a
filter) you can do what Alex suggested.

Andy


On Tue, Aug 27, 2013 at 8:00 PM, Alex Malyushytskyy <alexmalvtk at gmail.com>wrote:

> Something like:
>
> void removeArray( vtkPolyData * poly , const char* name )
> {
>        poly->GetPointData()->RemoveArray( name );
> }
>
> Alex
>
>
> On Tue, Aug 27, 2013 at 3:12 PM, david bahn <bahndavid2006 at gmail.com>wrote:
>
>> Hi All,
>>        If i have so many arrays in polydata, then how can i delete a
>> particular array from a polydata?
>>
>> david
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130827/0ecdafb6/attachment.htm>


More information about the vtkusers mailing list