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
> MayaVi-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mayavi-users

-- 
    Gael Varoquaux
    Research Fellow, INSERM
    Associate researcher, INRIA
    Laboratoire de Neuro-Imagerie Assistee par Ordinateur
    NeuroSpin/CEA Saclay , Bat 145, 91191 Gif-sur-Yvette France
    Phone:  ++ 33-1-69-08-78-35
    Mobile: ++ 33-6-28-25-64-62
    http://gael-varoquaux.info

------------------------------------------------------------------------------
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
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to