[vtkusers] Add a new scalar and array to vtkPolyData

David Doria daviddoria at gmail.com
Wed Feb 8 20:54:49 EST 2012


On Wed, Feb 8, 2012 at 8:29 PM, Ahmad <falahatpisheh at gmail.com> wrote:
> Hi All,
>
> Is it possible to add a new scalar and array to vtkPolyData? Let's say, I
> have a vtkPolyData which has "x", "y", "u", "v". Can I add "z" and "w" to it
> and initialize it with some value?
>
> Thank a lot,
> Ahmad

What do you mean it "has" x, y, u, v? Why not add z and w the same way
you added the others? Please give us a code snippet of what you've
done and what you're trying to do.

David



More information about the vtkusers mailing list