[vtkusers] VtkPoints and Scalars

Mike Jackson imikejackson at gmail.com
Wed Aug 30 19:15:15 EDT 2006

How many "scalars" can a vtkPoints object have?

This is the type of data that I have.

 I have lots of "Node" position in 3D space.
These are connected based on a connectivity table.

I have figured out that I can use vtkPolydata for this that was I can
describe each "line" and what points they are made up of. A line can
possibly branch so I can not just throw them into a polyline...

Now.. Each Point (position from above) has 3 vectors associated with it:

Each vector is double[3].

So how do I attach these 3 vectors to each point? I know it is some sort of
"SetScalars" call, but I am getting confused about how to do this and I left
my VTK books at work. And "Scalars" doesn't really sound right.....

So I see that vtkPolyData->GetPointData() returns a vtkPointData Object.
VtkPointData is derived from vtkFieldData.
So does this mean that I have a vtkFieldData with 12 components?

Any help would be much appreciated.
Mike Jackson
imikejackson <at> gmail <dot> com

More information about the vtkusers mailing list