Go to the documentation of this file.
62 Istream&
operator>>(Istream& is, edgeMesh& em);
63 Ostream&
operator<<(Ostream& os,
const edgeMesh& em);
71 public fileFormats::edgeMeshFormatsCore
82 mutable unique_ptr<labelListList> pointEdgesPtr_;
88 void calcPointEdges()
const;
117 static bool canReadType(
const word& fileType,
bool verbose=
false);
120 static bool canWriteType(
const word& fileType,
bool verbose=
false);
123 static bool canRead(
const fileName&
name,
bool verbose=
false);
167 static autoPtr<edgeMesh>
New
169 const fileName&
name,
174 static autoPtr<edgeMesh>
New(
const fileName&
name);
190 const fileName&
name,
199 const fileName&
name,
206 const fileName&
name,
207 const word& fileType,
221 bool read(
const fileName&
name,
const word& fileType);
224 virtual bool read(
const fileName&
name);
246 virtual void clear();
249 virtual void scalePoints(
const scalar scaleFactor);
List< label > labelList
A List of labels.
vectorField pointField
pointField is a vectorField.
edgeList & storedEdges()
Non-const access to the edges.
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.
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.
pointField & storedPoints()
Non-const access to global points.
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)
virtual ~edgeMesh()=default
Destructor.
static void write(const fileName &name, const edgeMesh &mesh)
Write to file (format implicit in the extension)
virtual void write(const fileName &name) const
Generic write routine. Chooses writer based on extension.
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)....
word name(const complex &c)
Return string representation of complex.
friend Ostream & operator<<(Ostream &os, const edgeMesh &em)
static wordHashSet readTypes()
Summary of supported read file types.
const pointField & points() const
Return points.
virtual void writeStats(Ostream &) const
declareMemberFunctionSelectionTable(void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh),(name, mesh))
const edgeList & edges() const
Return edges.
const labelListList & pointEdges() const
Return edges.
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?
List< labelList > labelListList
A List of labelList.
virtual void mergePoints(const scalar mergeDist)
Geometric merge points (points within mergeDist) prior to.
virtual void write(const fileName &name, const word &fileType) const
Generic write routine. Chooses writer based on extension.
Macros to ease declaration of run-time selection tables.
HashSet< word > wordHashSet
A HashSet with word keys.
Macros to enable the easy 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.