Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
surfMesh
surfaceFormats
ac3d
AC3DsurfaceFormat.H
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
========= |
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
\\ / O peration |
5
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
6
\\/ M anipulation |
7
-------------------------------------------------------------------------------
8
License
9
This file is part of OpenFOAM.
10
11
OpenFOAM is free software: you can redistribute it and/or modify it
12
under the terms of the GNU General Public License as published by
13
the Free Software Foundation, either version 3 of the License, or
14
(at your option) any later version.
15
16
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19
for more details.
20
21
You should have received a copy of the GNU General Public License
22
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23
24
Class
25
Foam::fileFormats::AC3DsurfaceFormat
26
27
Description
28
Provide a means of reading/writing AC3D format.
29
30
http://www.inivis.com/ac3d/man/ac3dfileformat.html
31
32
Note
33
On input, the faces are already organized as zones.
34
The output is always sorted by zones.
35
In the absence of zones, a single zone will be assigned.
36
37
SourceFiles
38
AC3DsurfaceFormat.C
39
40
\*---------------------------------------------------------------------------*/
41
42
#ifndef AC3DsurfaceFormat_H
43
#define AC3DsurfaceFormat_H
44
45
#include <
surfMesh/MeshedSurface.H
>
46
#include <
surfMesh/MeshedSurfaceProxy.H
>
47
#include <
surfMesh/UnsortedMeshedSurface.H
>
48
#include "
AC3DsurfaceFormatCore.H
"
49
50
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51
52
namespace
Foam
53
{
54
namespace
fileFormats
55
{
56
57
/*---------------------------------------------------------------------------*\
58
Class AC3DsurfaceFormat Declaration
59
\*---------------------------------------------------------------------------*/
60
61
template
<
class
Face>
62
class
AC3DsurfaceFormat
63
:
64
public
MeshedSurface
<Face>,
65
public
AC3DsurfaceFormatCore
66
{
67
// Private Member Functions
68
69
//- Disallow default bitwise copy construct
70
AC3DsurfaceFormat
(
const
AC3DsurfaceFormat<Face>
&);
71
72
//- Disallow default bitwise assignment
73
void
operator=(
const
AC3DsurfaceFormat<Face>
&);
74
75
76
public
:
77
78
// Constructors
79
80
//- Construct from file name
81
AC3DsurfaceFormat
(
const
fileName
&);
82
83
84
// Selectors
85
86
//- Read file and return surface
87
static
autoPtr<MeshedSurface<Face>
>
New
(
const
fileName
&
name
)
88
{
89
return
autoPtr<MeshedSurface<Face>
>
90
(
91
new
AC3DsurfaceFormat<Face>
(
name
)
92
);
93
}
94
95
96
// Destructor
97
98
virtual
~AC3DsurfaceFormat
()
99
{}
100
101
102
// Member Functions
103
104
//- Write surface mesh components by proxy
105
static
void
write
(
const
fileName
&,
const
MeshedSurfaceProxy<Face>
&);
106
107
//- Write UnsortedMeshedSurface, the output is always sorted by zones.
108
static
void
write
(
const
fileName
&,
const
UnsortedMeshedSurface<Face>
&);
109
110
//- Read from file
111
virtual
bool
read
(
const
fileName
&);
112
113
//- Write object
114
virtual
void
write
(
const
fileName
&
name
)
const
115
{
116
write
(name,
MeshedSurfaceProxy<Face>
(*
this
));
117
}
118
};
119
120
121
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122
123
}
// End namespace fileFormats
124
}
// End namespace Foam
125
126
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127
128
#ifdef NoRepository
129
# include "
AC3DsurfaceFormat.C
"
130
#endif
131
132
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133
134
#endif
135
136
// ************************ vim: set sw=4 sts=4 et: ************************ //