19 Jul 19:43
Re: [TVTK] Cannot add volume to renderer
From: Prabhu Ramachandran <prabhu@...>
Subject: Re: [TVTK] Cannot add volume to renderer
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-07-19 17:43:37 GMT
Subject: Re: [TVTK] Cannot add volume to renderer
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-07-19 17:43:37 GMT
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
RSS Feed