TexGen
TetgenMesh.h
Go to the documentation of this file.
1/*=============================================================================
2TexGen: Geometric textile modeller.
3Copyright (C) 2010 Louise Brown
4
5This program is free software; you can redistribute it and/or
6modify it under the terms of the GNU General Public License
7as published by the Free Software Foundation; either version 2
8of the License, or (at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18=============================================================================*/
19
20#pragma once
21
22#include "Mesh.h"
23#include "tetgen.h"
24#include "MeshDomainPlane.h"
25
26namespace TexGen
27{
28 using namespace std;
29
31
36 {
37 public:
38 CTetgenMesh( double Seed );
39 virtual ~CTetgenMesh(void);
40
42
48 void SaveTetgenMesh(CTextile &Textile, string OutputFilename, string Parameters, bool bPeriodic, int FileType );
49
50 protected:
54 tetgenio m_in, m_out;
58 vector<POINT_INFO> m_ElementsInfo;
59
61 void SaveMesh(CTextile &Textile);
63 void SaveToAbaqus( string Filename, CTextile &Textile );
65 void SaveToVTK(string Filename);
66
67 };
68}; // namespace TexGen
#define CLASS_DECLSPEC
Definition: Misc.h:35
Defines the nodes and elements of a surface or volume mesh.
Definition: Mesh.h:58
Class which tetrahedralizes a textile using Tetgen software.
Definition: TetgenMesh.h:36
CMesh m_Mesh
Mesh used to store input node points and elements.
Definition: TetgenMesh.h:52
tetgenio m_in
Tetgen input and output structures.
Definition: TetgenMesh.h:54
vector< POINT_INFO > m_ElementsInfo
Element information for output mesh.
Definition: TetgenMesh.h:58
CMesh m_OutputMesh
Mesh used to store output nodes and elements.
Definition: TetgenMesh.h:56
Represents a textile cell containing yarns.
Definition: Textile.h:39
Namespace containing a series of customised math operations not found in the standard c++ library.