[vtkusers] Visualise all point arrays of polydata - problem with setting and changing active scalar

Jochen K. jochen.kling at email.de
Wed Jun 6 20:01:14 EDT 2012


Hi Jana,

with SetInputArrayToProcess you set what array is to be used for the
scalars, vectors, normals, and color scalars.

"idx" stands for:

0 == scalars
1 == vectors
2 == normals
3 == color scalars

So if you want your array "array1" to specify the color, then idx must be 3
and "array1" of type vtkCharArray (with one component). If you want your
array to specify the point normals e.g, then idx must be 1 and "array1" of
type vtkDouble (with three components).

(I use SetInputArrayToProcess to tell my glyph3D object which array to use
for orientation and for scaling.)

Port and Connection I set to 0 always. What it stands for I can only assume
at the moment but won't tell, because it might be wrong. ;-)


Hope that helps a little bit.

with best regards
Jochen


--
View this message in context: http://vtk.1045678.n5.nabble.com/Visualise-all-point-arrays-of-polydata-problem-with-setting-and-changing-active-scalar-tp5713633p5713637.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list