Hi,
I want to display my 3D volume (range from 0 to 255) in uniform red. I’ve thought of this code:
colorTransferFunction-> AddRGBPoint (0.0 0.0 0.0 0.0); // i don't know if with
// these lines i actually display 'red'
colorTransferFunction-> AddRGBPoint (255.0 1.0 0.0 0.0);
colorTransferFunction-> AddRGBPoint (0.0 0.0 0.0 0.0);
colorTransferFunction-> AddRGBPoint (0.0 0.0 0.0 0.0);
colorTransferFunction-> AddRGBPoint (0.0 0.0 0.0 0.0);
volumeProperty->SetColor(colorTransferFunction);
but i receive this error for all the “AddRGBPoint” lines:
sintax error: ‘constant’
what am i doing wrong?
Thanks in advance for any help!