Hi there,

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

Reply via email to