[vtkusers] creating colortables (and opacity) with 3 scalars, rather than 1

Ruff albin.nilsson at gmail.com
Sat Jul 20 05:44:18 EDT 2013


I would like some way to rewrite the current color- and opacity settings.
I have a structuredPoints-set and I am currently using one scalar value and
the following settings for volume rendering:

opacity = vtk.vtkPiecewiseFunction()
opacity.AddPoint('scalar', 'opacity') #repeated a bunch of times
colors = vtk.vtkColorTransferFunction()
colors.AddRGBPoint('scalar','red','green','blue') #repeated a bunch of times

(the opacity and colors goes into ->vtkVolumeProperty->vtkVolume)
Is there some easy way to rewrite this so I can color structuredPoints with
3 scalars in it?



--
View this message in context: http://vtk.1045678.n5.nabble.com/creating-colortables-and-opacity-with-3-scalars-rather-than-1-tp5722091.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list