[vtkusers] volume rendering problem
Amy Henderson
amy.henderson at kitware.com
Wed Jun 16 09:30:19 EDT 2004
At 09:20 AM 6/16/2004, #ZHAO ZHEEN# wrote:
>Hi All,
>
>I want to display the volume rendering of a 256X256X62 3D mri image. the
>code compiles well. but the rendering window is empty, no rendering. Can
>someone please help me? I am using vtk4.2. the codes are attached.
>
>Best Regards
>Kurt
>
> vtkRenderer *ren1=vtkRenderer::New();
>
>
> vtkPiecewiseFunction *oTFun=vtkPiecewiseFunction::New();
> oTFun->AddSegment(80,1.0,255,1.0);
> vtkPiecewiseFunction *gTFun=vtkPiecewiseFunction::New();
> oTFun->AddSegment(0,1.0,255,1.0);
Is the above line a typo? Shouldn't you be adding a segment to gTFun, not
oTFun?
- Amy
More information about the vtkusers
mailing list