TexGen
SurfaceMesh.h
Go to the documentation of this file.
1/*=============================================================================
2TexGen: Geometric textile modeller.
3Copyright (C) 2019 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 "MeshDomainPlane.h"
24
25namespace TexGen
26{
27 using namespace std;
28
30
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:
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 generates a surface mesh with triangulated domain boundaries.
Definition: SurfaceMesh.h:34
CMesh m_Mesh
Mesh used to store node points and elements.
Definition: SurfaceMesh.h:65
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.