CREATETETRAKAIDECAHEDRON Create a 3D mesh representing a tetrakaidecahedron.

   [V, E, F] = createTetrakaidecahedron;
   Create a mesh structure representing a tetrakaidecahedron, composed of
   both square and hexagonal faces. Tetrakaidecahedron can be used to tile
   the 3D Euclidean space.

   V is a 24-by-3 array with vertex coordinates,
   E is a 36-by-2 array containing indices of neighbour vertices,
   F is a 14-by-1 cell array containing vertex indices array of each face.

   [V, F] = createTetrakaidecahedron;
   Returns only the vertices and the face vertex indices.

   MESH = createTetrakaidecahedron;
   Returns the data as a mesh structure, with fields 'vertices', 'edges'
   and 'faces'.

   Example
   [n, e, f] = createTetrakaidecahedron;
   drawMesh(n, f);
   
   See also
   meshes3d, drawMesh

Package: matgeom