Go to the documentation of this file.
65 Istream&
operator>>(Istream& is, edgeMesh& em);
66 Ostream&
operator<<(Ostream& os,
const edgeMesh& em);
75 public fileFormats::edgeMeshFormatsCore
86 mutable autoPtr<labelListList> pointEdgesPtr_;
92 void calcPointEdges()
const;
115 static bool canRead(
const fileName&
name,
bool verbose=
false);
118 static bool canReadType(
const word& ext,
bool verbose=
false);
121 static bool canWriteType(
const word& ext,
bool verbose=
false);
168 static autoPtr<edgeMesh>
New
170 const fileName&
name,
175 static autoPtr<edgeMesh>
New(
const fileName&
name);
191 const fileName&
name,
210 bool read(
const fileName&
name,
const word& ext);
213 virtual bool read(
const fileName&
name);
235 virtual void clear();
238 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 file names.
const Foam::Enum< fileTag > fileExtension
File extension (without ".") for some vtk XML file content types.
static bool canReadType(const word &ext, bool verbose=false)
Can we read this file format?
pointField & storedPoints()
Non-const access to global points.
edgeMesh()
Construct null.
Istream & operator>>(Istream &, directionInfo &)
friend Istream & operator>>(Istream &is, edgeMesh &em)
bool read(const fileName &name, const word &ext)
Read from file. Chooses reader based on explicit extension.
virtual ~edgeMesh()=default
Destructor.
static void write(const fileName &name, const edgeMesh &mesh)
Write to file.
virtual void write(const fileName &name) const
Generic write routine. Chooses writer based on extension.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static wordHashSet writeTypes()
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()
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.
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 > wordHashSet
A HashSet with word keys.
static bool canWriteType(const word &ext, bool verbose=false)
Can we write this file format type?
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.
Ostream & operator<<(Ostream &, const boundaryPatch &)
static autoPtr< edgeMesh > New(const fileName &name, const word &ext)
Select constructed from filename (explicit extension)