ParMooN
 All Classes Functions Variables Friends Pages
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TTetGenMeshLoader Class Reference
Collaboration diagram for TTetGenMeshLoader:
Collaboration graph
[legend]

Classes

struct  TDummyDomain
 

Public Member Functions

 TTetGenMeshLoader (const char *FileName)
 
int Generate (TDomain *Domain)
 
int Generate (int N_Points, double *Points, int N_Facets, int *Facets, int N_Regions, double *Regions, TDummyDomain *Domain)
 

Protected Member Functions

int ReadBoundFile (int N_BoundComps)
 
int ReadBoundComp (std::ifstream *in, int &CurrBoundComp, int &Range)
 
int ReadBoundType (std::ifstream *in, char *buff)
 
int ReadBoundParams (std::ifstream *in, char *type, int CurrBoundComp, int Range)
 
int ReadBoundParamsCylinder (std::ifstream *in, double &radius, double &px, double &py, double &pz, double &ax, double &ay, double &az, double &nx, double &ny, double &nz)
 
int ReadBoundParamsSphere (std::ifstream *in, double &radius, double &mx, double &my, double &mz)
 
int ExtractValue (const char *buff, int increment, double &val)
 
int ExtractVector (const char *buff, int increment, double &val1, double &val2, double &val3)
 
int SetBdPlaneParams (int N_BoundComps)
 
void Normalize3D (double *vec)
 
void Cross3D (double *vec1, double *vec2, double *res)
 
int AllocVertices (double &StartX, double &StartY, double &StartZ, double &BoundX, double &BoundY, double &BoundZ)
 
int AllocRootCells (TBaseCell **&CellTree, int &N_RootCells)
 
int AllocJoints (TBaseCell **CellTree)
 
int DistributeJoints (TBaseCell **CellTree)
 
int FindTriface (int a, int b, int c)
 
void HashTrifaces ()
 
int CreateAdjacency ()
 
void MakeOptionString (std::string &opts)
 
void MakeBoundaryLayer_smesh ()
 
void MakeBoundaryLayer_msh ()
 
void FindBoundaryPoints_msh (int *pointlist, double *normallist)
 
int Load_msh (const char *filename)
 
int BuildBoundary (TBoundPart **&BdParts, int &N_BoundParts, int &N_BoundComps, int *&StartBdCompID, int *&Interfaces)
 
int BuildBoundary2 (TBoundPart **&BdParts, int &N_BoundParts, int &N_BoundComps, int *&StartBdCompID, int *&Interfaces)
 
int Tetgen ()
 
int BuildMooNMDMesh (TBaseCell **&CellTree, int &N_RootCells, double &StartX, double &StartY, double &StartZ, double &BoundX, double &BoundY, double &BoundZ)
 

Protected Attributes

char * mFileName
 
char * mBoundFile
 
TBoundComp3D ** mAllBoundComps
 
TVertex ** mAllVertices
 
TJoint ** mAllJoints
 
int ** mTrifaceHash
 
tetgenio mTetIn
 
tetgenio mTetOut
 
tetgenbehavior mTetBeh
 
tetgenio mTetAddIn
 
bool plc
 
bool reconstruct
 
bool insertpoints
 

Member Function Documentation

int TTetGenMeshLoader::BuildBoundary ( TBoundPart **&  BdParts,
int &  N_BoundParts,
int &  N_BoundComps,
int *&  StartBdCompID,
int *&  Interfaces 
)
protected

build boundary from .smesh file

Here is the call graph for this function:

Here is the caller graph for this function:

int TTetGenMeshLoader::BuildBoundary2 ( TBoundPart **&  BdParts,
int &  N_BoundParts,
int &  N_BoundComps,
int *&  StartBdCompID,
int *&  Interfaces 
)
protected

build boundary from trifaces

Here is the caller graph for this function:

int TTetGenMeshLoader::BuildMooNMDMesh ( TBaseCell **&  CellTree,
int &  N_RootCells,
double &  StartX,
double &  StartY,
double &  StartZ,
double &  BoundX,
double &  BoundY,
double &  BoundZ 
)
protected

build rootcells

Here is the caller graph for this function:

int TTetGenMeshLoader::Generate ( TDomain Domain)

generate mesh

Here is the call graph for this function:

int TTetGenMeshLoader::Tetgen ( )
protected

triangulation with tegen

Here is the caller graph for this function:

Member Data Documentation

TBoundComp3D** TTetGenMeshLoader::mAllBoundComps
protected

list of all boundary components

TJoint** TTetGenMeshLoader::mAllJoints
protected

list of all joints

TVertex** TTetGenMeshLoader::mAllVertices
protected

list of all vertices

char* TTetGenMeshLoader::mBoundFile
protected

filename of .bound file with postfix

char* TTetGenMeshLoader::mFileName
protected

Filename of .smesh file without postfix

tetgenio TTetGenMeshLoader::mTetIn
protected

tetgen io objects

bool TTetGenMeshLoader::plc
protected

options


The documentation for this class was generated from the following files: