63 Istream&
operator>>(Istream& is, edgeMesh& em);
72 public fileFormats::edgeMeshFormatsCore
83 mutable std::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);
273 const fileName&
name,
274 IOstreamOption streamOpt = IOstreamOption(),
275 const dictionary& options = dictionary::null
285 const fileName&
name,
286 const word& fileType,
287 IOstreamOption streamOpt = IOstreamOption(),
291 write(
name, fileType, *
this, streamOpt, options);
bool read(const fileName &name, const word &fileType)
Read from file. Chooses reader based on explicit extension.
const pointField & points() const noexcept
Return points.
List< edge > edgeList
List of edge.
static bool canReadType(const word &fileType, bool verbose=false)
Can we read this file format?
virtual void scalePoints(const scalar scaleFactor)
Scale points. A non-positive factor is ignored.
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)
declareMemberFunctionSelectionTable(void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt, const dictionary &options),(name, mesh, streamOpt, options))
void operator=(const edgeMesh &rhs)
Copy assignment.
friend Ostream & operator<<(Ostream &os, const edgeMesh &em)
List< labelList > labelListList
List of labelList.
edgeMesh()
Default construct.
static wordHashSet writeTypes()
Summary of supported write file types.
friend Istream & operator>>(Istream &is, edgeMesh &em)
pointField & storedPoints() noexcept
Non-const access to global points.
const labelListList & pointEdges() const
Return edges.
vectorField pointField
pointField is a vectorField.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
declareRunTimeSelectionTable(autoPtr, edgeMesh, fileExtension,(const fileName &name),(name))
Istream & operator>>(Istream &, directionInfo &)
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
virtual void mergePoints(const scalar mergeDist)
Geometric merge points (points within mergeDist) prior to.
static wordHashSet readTypes()
Summary of supported read file types.
HashSet< word, Hash< word > > wordHashSet
A HashSet of words, uses string hasher.
static bool canWriteType(const word &fileType, bool verbose=false)
Can we write this file format type?
OBJstream os(runTime.globalPath()/outputName)
virtual void writeStats(Ostream &) const
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Macros to ease declaration of member function selection tables.
virtual void clear()
Clear all storage.
virtual void mergeEdges()
Merge duplicate edges and eliminate unused points.
const Foam::Enum< fileTag > fileExtension
File extension (without ".") for some vtk XML file content types.
const edgeList & edges() const noexcept
Return edges.
void transfer(edgeMesh &mesh)
Transfer the contents of the argument and annul the argument.
static bool canRead(const fileName &name, bool verbose=false)
Can we read this file format?
Macros to ease declaration of run-time selection tables.
List< label > labelList
A List of labels.
label regions(labelList &edgeRegion) const
Find connected regions. Set region number per edge.
edgeList & storedEdges() noexcept
Non-const access to the edges.
static autoPtr< edgeMesh > New(const fileName &name, const word &fileType)
Read construct from filename with given format.
TypeName("edgeMesh")
Runtime type information.