H2Lib  3.0
Data Structures | Typedefs | Functions
tet3d.h File Reference
#include "settings.h"

Go to the source code of this file.

Data Structures

struct  _tet3d
 Representation of a three-dimensional tetrahedral mesh. More...
 
struct  _tet3dref
 Representation of the refinement relationship between two meshes. More...
 

Typedefs

typedef struct _tet3d tet3d
 Three-dimensional tetrahedral mesh.
 
typedef tet3dptet3d
 Pointer to tet3d object.
 
typedef const tet3dpctet3d
 Pointer to constant tet3d object.
 
typedef struct _tet3dref tet3dref
 Refinement data for tetrahedral meshes.
 
typedef tet3drefptet3dref
 Pointer to tet3dref object.
 
typedef const tet3drefpctet3dref
 Pointer to constant tet3dref object.
 
typedef struct _tet3dbuilder tet3dbuilder
 Tool for constructing tet3d meshes.
 
typedef tet3dbuilderptet3dbuilder
 Pointer to tet3dbuilder object.
 

Functions

ptet3d new_tet3d (uint vertices, uint edges, uint faces, uint tetrahedra)
 Create a partially initialized tet3d mesh. More...
 
void del_tet3d (ptet3d gr)
 Delete a tet3d object. More...
 
ptet3d new_axis_tet3d ()
 Create a mesh for a tetrahedron with three edges aligned with the coordinate axes. More...
 
ptet3d new_regular_tet3d ()
 Create a mesh for a regular tetrahedron. More...
 
ptet3d new_unitcube_tet3d ()
 Create a mesh containing six tetrahedra representing the unit cube $[0,1] \times [0,1] \times [0,1]$. More...
 
void write_tet3d (pctet3d gr, const char *name)
 Write a tetrahedral mesh to a file. More...
 
ptet3d read_tet3d (const char *name)
 Read a tetrahedral mesh from a file. More...
 
void getvertices_byface_tet3d (pctet3d gr, uint tn, uint fl, uint v[])
 Find the vertices of a tetrahedron corresponding to a given face. More...
 
void getvertices_tet3d (pctet3d gr, uint tn, uint v[])
 Find the vertices of a tetrahedron. More...
 
void getedges_tet3d (pctet3d gr, uint tn, uint e[])
 Find the edges of a tetrahedron. More...
 
void getvertices_face_tet3d (pctet3d t3, uint nf, uint v[])
 Find the vertices of a face. More...
 
uint fixnormals_tet3d (ptet3d gr)
 Ensure that the edges of boundary faces are in counter-clockwise order as seen from outside of the mesh. More...
 
void check_tet3d (pctet3d gr)
 Perform various consistency checks. More...
 
void statistics_tet3d (pctet3d gr, preal hmin, preal hmax, preal volmin, preal volmax, preal relvolmin, preal relvolmax)
 Compute various statistices of a mesh. More...
 
ptet3d refine_tet3d (pctet3d gr, ptet3dref *grr)
 Regular refinement of a tetrahedral mesh. More...
 
void del_tet3dref (ptet3dref grr)
 Delete a tet3dref object. More...
 
ptet3dbuilder new_tet3dbuilder (uint vertices)
 Create a new tet3dbuilder object. More...
 
void del_tet3dbuilder (ptet3dbuilder tb)
 Delete a tet3dbuilder object. More...
 
real(* getx_tet3dbuilder (ptet3dbuilder tb))[3]
 Obtain array of vertex coordinates in tet3dbuilder object. More...
 
void addtetrahedron_tet3dbuilder (ptet3dbuilder tb, uint v0, uint v1, uint v2, uint v3)
 Add a tetrahedron to a tet3dbuilder object. More...
 
ptet3d buildmesh_tet3dbuilder (ptet3dbuilder tb)
 Create a tet3d mesh from the geometrical and topological information stored in a tet3dbuilder object. More...
 

Detailed Description

Author
Steffen Börm