Thanks Gael, i realise this must be pretty basic stuff for you. I agree 
that it a structured grid that i think i need, but my problem remains 
that if i create a structured grid using tvtk.StructuredGrid() as in the 
examples, i can no longer use 'volumetric' visualisations, (scalar cut 
plane/iso surface) unless i perform a delaunay-3d afterwards, which is 
not practical for the data.

If someone tells me that if i need to use Structured grid then i need to 
do that interpolation then thats fine, but i just feel like i might be 
missing something more elegant.

cheers

-i


Le 21/06/2011 11:39 PM, Gael Varoquaux a écrit :
> Just a quick answer,
>
> It seems to me that what you need to is what VTK calls a structured grid.
> You can find a bit of explaination and examples here:
> http://github.enthought.com/mayavi/mayavi/data.html#structuredgrid
>
> HTH,
>
> Gael
>
> On Tue, Jun 21, 2011 at 06:08:45PM +0200, Ivan PRICE wrote:
>> i have a question which is possibly more of a generic VTK question than
>> specifically about Mayavi, but i'll see if anyone can offer me some
>> quick advice.
>> I have data outputted from a model arranged in a x,y,z grid.
>> the x and y grid is the same for all z levels, but the actual z values
>> for each point with the same z grid index varies.. that is, the actual z
>> value (in meters) of a cell varies across the same integer z value
>> (between the other x,y's). i hope thats clear.
>> so i have 3, 3d variables for my x,y, and z data.. and i build a dataset
>> like this:
>> mlab.pipeline.scalar_field(x, y, z, scalars)
>> however i see that it results in an ImageSource, and if i test to
>> visualise a dataset that is zero for all z values except one where it is
>> one, i see a flat plane, when i should see the varying z values for that
>> z level.
>> if i try to use a scalar_scatter, i get the results i expect when i
>> visualise using glyphs,(each z level follows the expected terrain),  but
>> then i cannot to iso contours or cut planes, i think because i have lost
>> my connectivity info. running a delaunay 3d filter on the scalar_scatter
>> output gives me the results i need.. but it takes a long time and i feel
>> like i'm missing a better way to do this.
>> any ideas would be appreciated, i hope this makes sense.
>> thanks
>> -i
>
>
>
>> ------------------------------------------------------------------------------
>> EditLive Enterprise is the world's most technically advanced content
>> authoring tool. Experience the power of Track Changes, Inline Image
>> Editing and ensure content is compliant with Accessibility Checking.
>> http://p.sf.net/sfu/ephox-dev2dev
>> _______________________________________________
>> MayaVi-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mayavi-users


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to