STLsurfaceFormatRunTime.C
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011 OpenFOAM Foundation
9 Copyright (C) 2016 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27\*---------------------------------------------------------------------------*/
28
29#include "STLsurfaceFormat.H"
30#include "labelledTri.H"
31
34
35// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
36
37namespace Foam
38{
39namespace fileFormats
40{
41
42// read MeshedSurface (ascii)
44(
47 face,
48 fileExtension,
49 stl
50);
52(
55 triFace,
56 fileExtension,
57 stl
58);
60(
64 fileExtension,
65 stl
66);
67
68// read MeshedSurface (binary)
70(
73 face,
74 fileExtension,
75 stlb
76);
78(
81 triFace,
82 fileExtension,
83 stlb
84);
86(
90 fileExtension,
91 stlb
92);
93
94
95// write MeshedSurfaceProxy (ascii)
97(
100 face,
101 write,
102 fileExtension,
103 stl
104);
106(
109 triFace,
110 write,
111 fileExtension,
112 stl
113);
115(
119 write,
120 fileExtension,
121 stl
122);
123
124// write MeshedSurfaceProxy (binary)
126(
129 face,
130 write,
131 fileExtension,
132 stlb
133);
135(
138 triFace,
139 write,
140 fileExtension,
141 stlb
142);
144(
148 write,
149 fileExtension,
150 stlb
151);
152
153// write UnsortedMeshedSurface (ascii)
155(
158 face,
159 write,
160 fileExtension,
161 stl
162);
164(
167 triFace,
168 write,
169 fileExtension,
170 stl
171);
173(
177 write,
178 fileExtension,
179 stl
180);
181
182// write UnsortedMeshedSurface (binary)
184(
187 face,
188 write,
189 fileExtension,
190 stlb
191);
193(
196 triFace,
197 write,
198 fileExtension,
199 stlb
200);
202(
206 write,
207 fileExtension,
208 stlb
209);
210
211}
212}
213
214// ************************************************************************* //
Macros for easy insertion into member function selection tables.
#define addNamedTemplatedToMemberFunctionSelectionTable(baseType, thisType, Targ, funcName, argNames, lookupName)
Add to hash-table of functions with 'lookupName' as the key.
Macros for easy insertion into run-time selection tables.
#define addNamedTemplatedToRunTimeSelectionTable(baseType, thisType, Targ, argNames, lookupName)
Add to construction table with 'lookupName' as the key.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
Definition: MeshedSurface.H:99
A surface geometry mesh, in which the surface zone information is conveyed by the 'zoneId' associated...
A face is a list of labels corresponding to mesh vertices.
Definition: face.H:75
Provide a means of reading/writing STL files (ASCII and BINARY).
A triFace with additional (region) index.
Definition: labelledTri.H:60
A triangular face using a FixedList of labels corresponding to mesh vertices.
Definition: triFace.H:72
Namespace for OpenFOAM.
runTime write()