[vtkusers] Piecewise Function for Volume Rendering
Yuan Jin
yjin76 at hotmail.com
Wed Aug 21 21:47:04 EDT 2002
Hi all,
Does anyone have experience in setting up the piecewise function for the
volume rendering? ie. which points should be added to the piecewise
function? Is the histogram for the 3D image helpful?
For instance, in the example: VolCutKnee.py
white_tfun = vtkPiecewiseFunction()
white_tfun.AddPoint(0,1.0)
white_tfun.AddPoint(255,1.0)
tfun = vtkPiecewiseFunction()
tfun.AddPoint(70,0.0)
tfun.AddPoint(80,1.0)
vol_prop = vtkVolumeProperty()
vol_prop.SetColor(white_tfun)
vol_prop.SetScalarOpacity(tfun)
How to find out tfun.AddPoint(70,0.0) and tfun.AddPoint(80,1.0) ?
Thanks a lot,
Yuan
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
More information about the vtkusers
mailing list