Go to the documentation of this file.
63 Istream&
operator>>(Istream& is, edgeMesh& em);
72 public fileFormats::edgeMeshFormatsCore
83 mutable unique_ptr<labelListList> pointEdgesPtr_;
89 void calcPointEdges()
const;
118 static
bool canReadType(const word& fileType,
bool verbose=false);
121 static
bool canWriteType(const word& fileType,
bool verbose=false);
124 static
bool canRead(const fileName&
name,
bool verbose=false);
170 const fileName&
name,
191 const fileName&
name,
193 IOstreamOption streamOpt,
194 const dictionary& options
202 const fileName&
name,
204 IOstreamOption streamOpt = IOstreamOption(),
205 const dictionary& options = dictionary::null
211 const fileName&
name,
212 const word& fileType,
214 IOstreamOption streamOpt = IOstreamOption(),
215 const dictionary& options = dictionary::null
228 bool read(const fileName&
name, const word& fileType);
231 virtual
bool read(const fileName&
name);
253 virtual
void clear();
256 virtual
void scalePoints(const scalar scaleFactor);
286 const word& fileType,
291 write(
name, fileType, *
this, streamOpt, options);
List< label > labelList
A List of labels.
vectorField pointField
pointField is a vectorField.
const pointField & points() const noexcept
Return points.
virtual void scalePoints(const scalar scaleFactor)
Scale points. A non-positive factor is ignored.
label regions(labelList &edgeRegion) const
Find connected regions. Set region number per edge.
void operator=(const edgeMesh &rhs)
Copy assignment.
List< edge > edgeList
A List of edges.
A class for handling words, derived from Foam::string.
static bool canReadType(const word &fileType, bool verbose=false)
Can we read this file format?
A class for handling file names.
declareMemberFunctionSelectionTable(void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt, const dictionary &options),(name, mesh, streamOpt, options))
static autoPtr< edgeMesh > New(const fileName &name, const word &fileType)
Read construct from filename with given format.
const Foam::Enum< fileTag > fileExtension
File extension (without ".") for some vtk XML file content types.
edgeMesh()
Default construct.
bool read(const fileName &name, const word &fileType)
Read from file. Chooses reader based on explicit extension.
Istream & operator>>(Istream &, directionInfo &)
friend Istream & operator>>(Istream &is, edgeMesh &em)
static void write(const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null)
Write to file (format implicit in the extension)
pointField & storedPoints() noexcept
Non-const access to global points.
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
static wordHashSet writeTypes()
Summary of supported write file types.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
friend Ostream & operator<<(Ostream &os, const edgeMesh &em)
static wordHashSet readTypes()
Summary of supported read file types.
virtual void writeStats(Ostream &) const
The IOstreamOption is a simple container for options an IOstream can normally have.
const labelListList & pointEdges() const
Return edges.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
declareRunTimeSelectionTable(autoPtr, edgeMesh, fileExtension,(const fileName &name),(name))
virtual void mergeEdges()
Merge duplicate edges and eliminate unused points.
static bool canRead(const fileName &name, bool verbose=false)
Can we read this file format?
virtual void clear()
Clear all storage.
static bool canWriteType(const word &fileType, bool verbose=false)
Can we write this file format type?
const edgeList & edges() const noexcept
Return edges.
List< labelList > labelListList
A List of labelList.
virtual void mergePoints(const scalar mergeDist)
Geometric merge points (points within mergeDist) prior to.
Macros to ease declaration of run-time selection tables.
HashSet< word, Hash< word > > wordHashSet
A HashSet of words, uses string hasher.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
edgeList & storedEdges() noexcept
Non-const access to the edges.
Macros to ease declaration of member function selection tables.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
TypeName("edgeMesh")
Runtime type information.
Mesh data needed to do the Finite Area discretisation.
void transfer(edgeMesh &mesh)
Transfer the contents of the argument and annul the argument.