From: Marios Karaoulis on
Hi all. I want to create a series of hexahedra given the node
coordinates.
let's say i give the base coordinates

base_x=[1 2 3 4 5 6];
base_y=[2 4 6 8 10 12];
base_z=[0 -2 -3];

and create the mesh

[XI YI ZI]=meshgrid(base_x,base_y,base_z);

x_nodes=reshape(XI,1,3*6*6);
y_nodes=reshape(YI,1,3*6*6);
z_nodes=reshape(ZI,1,3*6*6);
plot3(x_nodes,y_nodes,z_nodes,'o');

Now i want to create a hexahedra using nodes that are near.
e.g.
first hexahedron will have the following eight nodes
x=1, y=12, z=0
x=2, y=12, z=0
x=1, y=10, z=0
x=2, y=10, z=0

x=1, y=12, z=-2
x=2, y=12, z=-2
x=1, y=10, z=-2
x=2, y=10, z=-2

Next hexahedron will be the one on the "right"
x=2; y=12, z=0;
x=3, y=12, z=0;
x=2, y=12, z=0;
x=3, y=10, z=0;

x=2, y=12, z=-2
x=3, y=12, z=-2
x=2, y=10, z=-2
x=3, y=10, z=-2;

next....

when the first series of hexahedron (between z=0 and z=-2) ends,
continue with another series of hexahedron between z=-2 and z=-3.

Ideally, I want to create a vector (8x1), which will have the number
of nodes used to create the hexahedron
like (random numbering)
hex(1)=4;
hex(2)=5;
hex(3)=8;
hex(4)=10;
hex(5)=11;
hex(6)=12;
hex(7)=14;
hex(8)=20;

How can I make this?
Thanks
From: Marios Karaoulis on
as far as i can understand delaunayn is only for tetrahedra)