TexGen
Core
TetgenMesh.h
Go to the documentation of this file.
1
/*=============================================================================
2
TexGen: Geometric textile modeller.
3
Copyright (C) 2010 Louise Brown
4
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License
7
as published by the Free Software Foundation; either version 2
8
of the License, or (at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, 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
26
namespace
TexGen
27
{
28
using namespace
std;
29
31
35
class
CLASS_DECLSPEC
CTetgenMesh
:
public
CMeshDomainPlane
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
:
52
CMesh
m_Mesh
;
54
tetgenio
m_in
, m_out;
56
CMesh
m_OutputMesh
;
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
Mesh.h
MeshDomainPlane.h
CLASS_DECLSPEC
#define CLASS_DECLSPEC
Definition:
Misc.h:35
TexGen::CMeshDomainPlane
Definition:
MeshDomainPlane.h:42
TexGen::CMesh
Defines the nodes and elements of a surface or volume mesh.
Definition:
Mesh.h:58
TexGen::CTetgenMesh
Class which tetrahedralizes a textile using Tetgen software.
Definition:
TetgenMesh.h:36
TexGen::CTetgenMesh::m_Mesh
CMesh m_Mesh
Mesh used to store input node points and elements.
Definition:
TetgenMesh.h:52
TexGen::CTetgenMesh::m_in
tetgenio m_in
Tetgen input and output structures.
Definition:
TetgenMesh.h:54
TexGen::CTetgenMesh::m_ElementsInfo
vector< POINT_INFO > m_ElementsInfo
Element information for output mesh.
Definition:
TetgenMesh.h:58
TexGen::CTetgenMesh::m_OutputMesh
CMesh m_OutputMesh
Mesh used to store output nodes and elements.
Definition:
TetgenMesh.h:56
TexGen::CTextile
Represents a textile cell containing yarns.
Definition:
Textile.h:39
TexGen
Namespace containing a series of customised math operations not found in the standard c++ library.
Definition:
AdjustMeshInterference.h:27
Generated by
1.9.2