Prabhu Ramachandran | 19 Jul 19:43

Re: [TVTK] Cannot add volume to renderer

Jack.Cook@... wrote:
> I believe I figured out what I was doing wrong. The line
> 
> vol = tvtk.Volume
> 
> returns a enthought.traits.has_traitis.MetaHasTraits. What I should have 
> done is
> 
> vol = tvtk.Volume()
> 
> which returns a tvtk_classes.volume.Volume. The program still does not 
> work as written because the the vtkVolumeRayCastMapper apparently cannot 
> render float data. I will change datasources and see if I can get things 
> to work.

You should use tvtk.FixedPointVolumeRayCastMapper to render float data.

You may also find using the tvtk_doc script handy to search for 
information in tvtk.

cheers,
prabhu

Gmane