72 public fileFormats::edgeMeshFormatsCore
83 mutable unique_ptr<labelListList> pointEdgesPtr_;
89 void calcPointEdges()
const;
212 const
word& fileType,
253 virtual
void clear();
256 virtual
void scalePoints(const scalar scaleFactor);
286 const word& fileType,
291 write(
name, fileType, *
this, streamOpt, options);
The IOstreamOption is a simple container for options an IOstream can normally have.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Area discretisation.
pointField & storedPoints() noexcept
Non-const access to global points.
virtual void mergeEdges()
Merge duplicate edges and eliminate unused points.
const labelListList & pointEdges() const
Return edges.
static bool canWriteType(const word &fileType, bool verbose=false)
Can we write this file format type?
static wordHashSet writeTypes()
Summary of supported write file types.
virtual void mergePoints(const scalar mergeDist)
Geometric merge points (points within mergeDist) prior to.
edgeMesh()
Default construct.
const pointField & points() const noexcept
Return points.
const edgeList & edges() const noexcept
Return edges.
static bool canReadType(const word &fileType, bool verbose=false)
Can we read this file format?
bool read(const fileName &name, const word &fileType)
Read from file. Chooses reader based on explicit extension.
void transfer(edgeMesh &mesh)
Transfer the contents of the argument and annul the argument.
friend Istream & operator>>(Istream &is, edgeMesh &em)
friend Ostream & operator<<(Ostream &os, const edgeMesh &em)
label regions(labelList &edgeRegion) const
Find connected regions. Set region number per edge.
static bool canRead(const fileName &name, bool verbose=false)
Can we read this file format?
virtual void writeStats(Ostream &) const
edgeList & storedEdges() noexcept
Non-const access to the edges.
virtual void clear()
Clear all storage.
void operator=(const edgeMesh &rhs)
Copy assignment.
static autoPtr< edgeMesh > New(const fileName &name, const word &fileType)
Read construct from filename with given format.
virtual void scalePoints(const scalar scaleFactor)
Scale points. A non-positive factor is ignored.
static wordHashSet readTypes()
Summary of supported read file types.
A class for handling file names.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Macros to ease declaration of member function selection tables.
#define declareMemberFunctionSelectionTable(returnType, baseType, funcName, argNames, argList, parListUnused)
Declare a run-time member-function selection (variables and adder classes)
vectorField pointField
pointField is a vectorField.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Istream & operator>>(Istream &, directionInfo &)
List< edge > edgeList
A List of edges.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.