TexGen
Core
SurfaceMesh.h
Go to the documentation of this file.
1
/*=============================================================================
2
TexGen: Geometric textile modeller.
3
Copyright (C) 2019 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 "
MeshDomainPlane.h
"
24
25
namespace
TexGen
26
{
27
using namespace
std;
28
30
33
class
CLASS_DECLSPEC
CSurfaceMesh
:
public
CMeshDomainPlane
34
{
35
public
:
37
41
CSurfaceMesh
(
double
Seed,
bool
bFillEnds =
true
);
42
virtual
~CSurfaceMesh
(
void
);
44
50
void
SaveSurfaceMesh(
CTextile
&Textile,
bool
bSaveYarns =
true
,
bool
bSaveDomain =
false
,
bool
bTrimToDomain =
true
);
51
53
57
void
SaveToSTL(
string
Filename,
bool
bBinary);
59
void
SaveToVTK(
string
Filename);
61
void
SaveToSCIRun(
string
Filename);
62
63
protected
:
65
CMesh
m_Mesh
;
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::CSurfaceMesh
Class which generates a surface mesh with triangulated domain boundaries.
Definition:
SurfaceMesh.h:34
TexGen::CSurfaceMesh::m_Mesh
CMesh m_Mesh
Mesh used to store node points and elements.
Definition:
SurfaceMesh.h:65
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