Provide a means of writing VTK legacy format. More...
Public Member Functions | |
VTKedgeFormat (const fileName &filename) | |
Read construct from file name. More... | |
virtual | ~VTKedgeFormat ()=default |
Destructor. More... | |
virtual bool | read (const fileName &name) |
Read from file. More... | |
virtual void | write (const fileName &name, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const |
Write to file. More... | |
![]() | |
edgeMesh (const faMesh &mesh) | |
Construct finite-area edge mesh faMesh reference. More... | |
label | size () const |
Return size. Number of internal edges. More... | |
const edgeVectorField & | C () const |
Field of edge centres. More... | |
TypeName ("edgeMesh") | |
Runtime type information. More... | |
edgeMesh () | |
Default construct. More... | |
edgeMesh (const edgeMesh &em) | |
Copy construct. More... | |
edgeMesh (edgeMesh &&em) | |
Move construct. More... | |
edgeMesh (const pointField &points, const edgeList &edges) | |
Copy construct from components. More... | |
edgeMesh (pointField &&pointLst, edgeList &&edgeLst) | |
Move construct from components. More... | |
edgeMesh (const fileName &name) | |
Construct from file name (uses extension to determine type) More... | |
edgeMesh (const fileName &name, const word &fileType) | |
Construct from file name with specified type. More... | |
declareRunTimeSelectionTable (autoPtr, edgeMesh, fileExtension,(const fileName &name),(name)) | |
virtual | ~edgeMesh ()=default |
Destructor. More... | |
declareMemberFunctionSelectionTable (void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt, const dictionary &options),(name, mesh, streamOpt, options)) | |
void | transfer (edgeMesh &mesh) |
Transfer the contents of the argument and annul the argument. More... | |
bool | read (const fileName &name, const word &fileType) |
Read from file. Chooses reader based on explicit extension. More... | |
const pointField & | points () const noexcept |
Return points. More... | |
const edgeList & | edges () const noexcept |
Return edges. More... | |
const labelListList & | pointEdges () const |
Return edges. More... | |
label | regions (labelList &edgeRegion) const |
Find connected regions. Set region number per edge. More... | |
virtual void | clear () |
Clear all storage. More... | |
virtual void | scalePoints (const scalar scaleFactor) |
Scale points. A non-positive factor is ignored. More... | |
virtual void | mergePoints (const scalar mergeDist) |
Geometric merge points (points within mergeDist) prior to. More... | |
virtual void | mergeEdges () |
Merge duplicate edges and eliminate unused points. More... | |
virtual void | writeStats (Ostream &) const |
virtual void | write (const fileName &name, const word &fileType, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const |
Write to file with given format type. More... | |
void | operator= (const edgeMesh &rhs) |
Copy assignment. More... | |
void | operator= (edgeMesh &&rhs) |
Move assignment. More... | |
![]() | |
GeoMesh (const faMesh &mesh) | |
Construct from mesh reference. More... | |
bool | hasDb () const |
Return true if thisDb() is a valid DB - here = false. More... | |
const objectRegistry & | thisDb () const |
Return the object registry. More... | |
const faMesh & | operator() () const |
Return reference to the underlying mesh. More... | |
Static Public Member Functions | |
static autoPtr< edgeMesh > | New (const fileName &name) |
Read file and return surface. More... | |
static void | write (const fileName &filename, const edgeMesh &mesh, IOstreamOption=IOstreamOption(), const dictionary &options=dictionary::null) |
Write edge mesh to file. More... | |
![]() | |
static label | size (const Mesh &mesh) |
Return size. Number of internal edges. More... | |
static wordHashSet | readTypes () |
Summary of supported read file types. More... | |
static wordHashSet | writeTypes () |
Summary of supported write file types. More... | |
static bool | canReadType (const word &fileType, bool verbose=false) |
Can we read this file format? More... | |
static bool | canWriteType (const word &fileType, bool verbose=false) |
Can we write this file format type? More... | |
static bool | canRead (const fileName &name, bool verbose=false) |
Can we read this file format? More... | |
static autoPtr< edgeMesh > | New (const fileName &name, const word &fileType) |
Read construct from filename with given format. More... | |
static autoPtr< edgeMesh > | New (const fileName &name) |
Select constructed from filename (implicit extension) More... | |
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) More... | |
static void | write (const fileName &name, const word &fileType, const edgeMesh &mesh, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) |
Write to file, with given format. More... | |
Additional Inherited Members | |
![]() | |
typedef faMesh | Mesh |
typedef faMesh ::BoundaryMesh | BoundaryMesh |
![]() | |
pointField & | storedPoints () noexcept |
Non-const access to global points. More... | |
edgeList & | storedEdges () noexcept |
Non-const access to the edges. More... | |
![]() | |
const faMesh & | mesh_ |
Reference to Mesh. More... | |
Provide a means of writing VTK legacy format.
Definition at line 53 of file VTKedgeFormat.H.
|
explicit |
Read construct from file name.
Definition at line 38 of file VTKedgeFormat.C.
References Foam::blockMeshTools::read().
|
virtualdefault |
Destructor.
Read file and return surface.
Definition at line 68 of file VTKedgeFormat.H.
References Foam::name().
|
static |
Write edge mesh to file.
Definition at line 107 of file VTKedgeFormat.C.
References edgeMesh::edges(), dictionary::getOrDefault(), edgeMesh::points(), outputOptions::precision(), and writer().
Referenced by VTKedgeFormat::write().
Read from file.
Reimplemented from edgeMesh.
Definition at line 49 of file VTKedgeFormat.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, IOstream::good(), vtkUnstructuredReader::lines(), Foam::New(), and vtkUnstructuredReader::points().
|
inlinevirtual |
Write to file.
Reimplemented from edgeMesh.
Definition at line 97 of file VTKedgeFormat.H.
References Foam::name(), and VTKedgeFormat::write().