2 Dec 19:23
Re: [mv2] LUT, ImagePlaneWidget and custom import module
From: Prabhu Ramachandran <prabhu@...>
Subject: Re: [mv2] LUT, ImagePlaneWidget and custom import module
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-12-02 18:23:14 GMT
Subject: Re: [mv2] LUT, ImagePlaneWidget and custom import module
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-12-02 18:23:14 GMT
B. P. Thrane wrote: > r = tvtk.StructuredPoints(origin=zzz.origin(), > dimensions=zzz.dims(), spacing=zzz.spacing()) > r.point_data.scalars = zzz.datadict["Var1"] > r.point_data.scalars.name = 'Var1' > r.update() > > src = VTKDataSource(data=r) > return src > > I've tried setting scalar_type='float' in the call, but that doesn't In which call? Could you try this: id = tvtk.ImageData() id.scalar_type = 'float' id.set(origin= ...) id.update() src = VTKDataSource(data=id) return src > help. What I cannot figure out is how the set the lookup table to > default, as you have to when you write to file using > StructuredPointsWriter. Hmm, strange, I have never needed to set this at all. A reproducible example would really help. cheers,(Continue reading)
RSS Feed