[vtkusers] vtkPiecewiseFunction

heochy heochy at hotmail.com
Tue Aug 3 22:31:20 EDT 2004


hi vtkusers.

One problem occurred.
How to use 2 more vtkPiecewiseFunction in the vtkVolumeProperty??
 
Here's an example and nothing happened...
The result was that only in Zero Index...

volumeProperty-> SetColor(0, colorTransferFunction[0]);
volumeProperty-> SetScalarOpacity(0, piecewiseFunction[0]);

volumeProperty-> SetColor(1, colorTransferFunction[1]);
volumeProperty-> SetScalarOpacity(1, piecewiseFunction[1]);

volumeProperty-> SetColor(2, colorTransferFunction[2]);
volumeProperty-> SetScalarOpacity(2, piecewiseFunction[2]);



More information about the vtkusers mailing list