From: Brian Bak on
Hi

I would like to plot a mesh of 3d hex elements. I have the data of the mesh in the following form:

node coordinates:
node1 x y z
node2 x y z
node3 x y z
..
..

And the hex elements connectivity:
Element1 node1 node2 node3 node4 node5 node6 node7 node8
Element2 node2 node9 node10 ....
Element3 node43 ....
..
..

Earlier for 2d quad elements i have used the patch function in the following way:
patch('Vertices',nodes,'Faces',elements, 'FaceVertexCData', colordata,'FaceColor','flat')

where the nodes was given as:
node coordinates:
node1 x y z
node2 x y z
node3 x y z
..
..

and the elements as:
And the hex elements connectivity:
Element1 node1 node2 node3 node4
Element2 node2 node9 node10 node5
Element3 node43 ...
..
..

Is there a similar easy way of plotting the a 3d hex mesh?

Thanks in advance.

Regards Brian
From: jay on
hi Brian,
send me ur code or post it hier and ill write u back.
with regards

Jay