Before the keyword End, you have to define all the mesh characteristics: vertex, elements (triangles, quadrilaterals, tetrahedra, hexahedra...), etc. Those entities are defined as follows:
NB :The entities number begins to
(and not
like in C langage)
Vertices
...
with
the number of mesh nodes,
the coordinates of vertex
and
its reference (an integer).
NB :In dimension 2, it is just
Triangles
...
with
the number of mesh triangles,
the number of vertex
of triangle
and
its reference.
Quadrilaterals
...
with
the number of quadrilaterals,
the number of vertex
of quadrilaterals
and
its reference.
Tetrahedra
...
with
the number of tetrahedra,
the number of vertex
of tetrahedron
and
its reference.
Hexahedra
...
with
the number of hexahedra,
the number of vertex
of hexahedron
and
its reference.
Edges
...
with
the number of (boundary) edges,
the numbers of the two vertex which compose the edge
and
its reference.