Go to the documentation of this file.
63 Ostream&
operator<<(Ostream&,
const edgeMesh&);
237 virtual void clear();
virtual ~edgeMesh()
Destructor.
edgeList & storedEdges()
Non-const access to the edges.
label regions(labelList &edgeRegion) const
Find connected regions. Set region number per edge.
A class for handling words, derived from string.
static autoPtr< edgeMesh > New(const fileName &, const word &ext)
Select constructed from filename (explicit extension)
A class for handling file names.
static bool canWriteType(const word &ext, const bool verbose=false)
Can we write this file format type?
static bool canReadType(const word &ext, const bool verbose=false)
Can we read this file format?
pointField points_
Vertices of the edges.
virtual void scalePoints(const scalar)
Scale points. A non-positive factor is ignored.
pointField & storedPoints()
Non-const access to global points.
edgeMesh()
Construct null.
Xfer< edgeMesh > xfer()
Transfer contents to the Xfer container.
virtual void mergePoints(const scalar mergeDist, labelList &)
Merge common points (points within mergeDist). Return map from.
autoPtr< labelListList > pointEdgesPtr_
From point to edges.
bool read(const fileName &, const word &ext)
Read from file. Chooses reader based on explicit extension.
A HashTable with keys but without contents.
A simple container for copying or transferring objects of type <T>.
static bool canRead(const fileName &, const bool verbose=false)
Can we read this file format?
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.
Pre-declare SubField and related Field type.
static wordHashSet writeTypes()
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static wordHashSet readTypes()
void operator=(const edgeMesh &)
const pointField & points() const
Return points.
virtual void writeStats(Ostream &) const
friend Istream & operator>>(Istream &, edgeMesh &)
declareMemberFunctionSelectionTable(void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh),(name, mesh))
Ostream & operator<<(Ostream &, const edgeMesh &)
const edgeList & edges() const
Return edges.
const labelListList & pointEdges() const
Return edges.
declareRunTimeSelectionTable(autoPtr, edgeMesh, fileExtension,(const fileName &name),(name))
static void write(const fileName &, const edgeMesh &)
Write to file.
virtual void mergeEdges()
Merge duplicate edges.
virtual void clear()
Clear all storage.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual void reset(const Xfer< pointField > &points, const Xfer< edgeList > &edges)
Reset primitive data (points, edges)
Macros to ease declaration of run-time selection tables.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
friend Ostream & operator<<(Ostream &, const edgeMesh &)
Istream & operator>>(Istream &, edgeMesh &)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void transfer(edgeMesh &)
Transfer the contents of the argument and annul the argument.
TypeName("edgeMesh")
Runtime type information.
edgeList edges_
The edges defining the boundary.
Points connected by edges.
void calcPointEdges() const
Calculate point-edge addressing (inverse of edges)
word name(const complex &)
Return a string representation of a complex.