[vtkusers] creating colortables (and opacity) with 3 scalars, rather than 1
Alex Malyushytskyy
alexmalvtk at gmail.com
Wed Jul 24 18:06:30 EDT 2013
VTK has 2 ways to color datasets.
You can directly specify color or you can make the mapper to use look up
table to color according to point or cell scalar array.
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColorCells
Does this answer your question?
On Sat, Jul 20, 2013 at 2:44 AM, Ruff <albin.nilsson at gmail.com> wrote:
> 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.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130724/12dd013f/attachment.htm>
More information about the vtkusers
mailing list