43 #ifndef MeshedSurfaceProxy_H 44 #define MeshedSurfaceProxy_H 58 template<
class Face>
class MeshedSurface;
65 class MeshedSurfaceProxy
67 public fileFormats::surfaceFormatsCore
73 const UList<Face>& faces_;
75 const UList<surfZone>& zones_;
77 const UList<label>& faceMap_;
79 const UList<label>& faceIds_;
137 (
name, surf, streamOpt, options)
154 const word& fileType,
168 return faces_.size();
206 return faceMap_.size() == faces_.size();
212 return faceIds_.size() == faces_.size();
237 const word& fileType,
242 write(
name, fileType, *
this, streamOpt, options);
label nTriangles() const
Count number of triangles.
A class for handling file names.
ClassName("MeshedSurfaceProxy")
Declare type-name (with debug switch)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
declareMemberFunctionSelectionTable(void, MeshedSurfaceProxy, write, fileExtension,(const fileName &name, const MeshedSurfaceProxy< Face > &surf, IOstreamOption streamOpt, const dictionary &options),(name, surf, streamOpt, options))
A simple container for options an IOstream can normally have.
const UList< surfZone > & surfZones() const
Const access to the surface zones.
static bool canWriteType(const word &fileType, bool verbose=false)
Can this file format type be written via MeshedSurfaceProxy?
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Face face_type
The face type.
const labelUList & faceIds() const
Const access to the faceIds, zero-sized when unused.
static void write(const fileName &name, const MeshedSurfaceProxy &surf, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null)
Write to file, select based on its extension.
bool useFaceMap() const
Can/should use faceMap?
vectorField pointField
pointField is a vectorField.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
bool useFaceIds() const
Possible to use faceIds?
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
static const word null
An empty word.
MeshedSurfaceProxy(const pointField &pointLst, const UList< Face > &faceLst, const UList< surfZone > &zoneLst=UList< surfZone >::null(), const labelUList &faceMap=labelUList::null(), const labelUList &faceIdLst=labelUList::null())
Construct from component references.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats...
static const UList< label > & null()
Return a UList reference to a nullObject.
point point_type
The point type.
Macros to ease declaration of member function selection tables.
label size() const
The surface size is the number of faces.
const labelUList & faceMap() const
Const access to the faceMap, zero-sized when unused.
const Foam::Enum< fileTag > fileExtension
File extension (without ".") for some vtk XML file content types.
const pointField & points() const
Return const access to the points.
virtual ~MeshedSurfaceProxy()=default
Destructor.
Macros to ease declaration of run-time selection tables.
static wordHashSet writeTypes()
The file format types that can be written via MeshedSurfaceProxy.
const UList< Face > & surfFaces() const
Return const access to the faces.