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

Go to the source code of this file.

Data Structures

struct  _surface3d
 Representation of a triangle surface mesh. More...
 

Typedefs

typedef struct _surface3d surface3d
 Abbreviation for the struct _surface3d .
 
typedef surface3dpsurface3d
 Abbreviation for a pointer to a surface3d object.
 
typedef const surface3dpcsurface3d
 Abbreviation for a pointer to a constant surface3d object.
 

Functions

psurface3d new_surface3d (uint vertices, uint edges, uint triangles)
 create a new surface3d object with a certain number of vertices, edges and triangles. More...
 
void prepare_surface3d (psurface3d gr)
 This function computes the normal vectors n , the gram determinants g and the minimal and maximal mesh size hmin, hmax from the geometrical information. More...
 
void del_surface3d (psurface3d gr)
 Free Storage allocated for a surface3d object. More...
 
void getproperties_surface3d (pcsurface3d gr, preal hmin, preal hmax, preal anglemin, preal angleedge)
 Compute geometrical properties of a surface grid. More...
 
void print_surface3d (pcsurface3d gr)
 print geometrical information to stdout. More...
 
uint check_surface3d (pcsurface3d gr)
 Check if the geometrical information of a surface are consistent. More...
 
bool isclosed_surface3d (pcsurface3d gr)
 Check if the surface mesh is closed. More...
 
bool isoriented_surface3d (pcsurface3d gr)
 Check if the surface is oriented correctly. More...
 
void scale_surface3d (psurface3d gr, real *a, real *b)
 Scale the geometry to a cube of given size. More...
 
void translate_surface3d (psurface3d gr, real *t)
 Translate a geometry gr by a vector $t \in \mathbb R^3$. More...
 
psurface3d merge_surface3d (pcsurface3d gr1, pcsurface3d gr2)
 Merge to meshes into a single mesh. More...
 
void write_surface3d (pcsurface3d gr, const char *filename)
 Write geometrical information of a surface mesh into a given file using the H2Lib ascii representation. More...
 
psurface3d read_surface3d (const char *filename)
 Read geometrical information of a surface mesh from a given file using the H2Lib ascii representation. More...
 
void write_nc_surface3d (pcsurface3d gr, const char *filename)
 Write geometrical information of a surface mesh into a given file using NetCDF. More...
 
psurface3d read_nc_surface3d (const char *filename)
 Read geometrical information of a surface mesh from a given file using NetCDF. More...
 
psurface3d read_netgen_surface3d (const char *filename)
 Read geometrical information of a surface mesh from a given file using the netgen format. More...
 
psurface3d read_gmsh_surface3d (const char *filename)
 Read geometrical information of a surface mesh from a given file using the gmsh format. More...
 
psurface3d read_unv_surface3d (char *filename)
 Read geometrical information of a surface mesh from a given file using the unv format. More...
 
psurface3d refine_red_surface3d (psurface3d in)
 Apply a red refinement to a surface mesh. More...
 

Detailed Description

Author
Steffen Börm