[vtkusers] SetScalar() removes my color scalars

jhirsch jan.hirsch at st.ovgu.de
Thu Mar 3 09:09:25 EST 2016


Hello Doug,
your source example just creates two arrays and set their names and
therefore has little to do with your problem, I guess. Can you copy more
lines of code that show the problem with the scalar replacement?

In general I would recommend to create a scalar array with 3 components and
use that for colours. Like this:

(that's from the example  here
<http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColoredPoints>  )




--
View this message in context: http://vtk.1045678.n5.nabble.com/SetScalar-removes-my-color-scalars-tp5736971p5736995.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list