Points connected by edges. More...
Public Member Functions | |
TypeName ("edgeMesh") | |
Runtime type information. More... | |
edgeMesh () | |
Construct null. More... | |
edgeMesh (const pointField &, const edgeList &) | |
Construct from components. More... | |
edgeMesh (pointField &&, edgeList &&) | |
Construct by transferring components (points, edges). More... | |
edgeMesh (const edgeMesh &) | |
Copy constructor. More... | |
edgeMesh (edgeMesh &&) | |
Move constructor. More... | |
edgeMesh (const fileName &) | |
Construct from file name (uses extension to determine type) More... | |
edgeMesh (const fileName &, const word &ext) | |
Construct from file name (uses extension to determine type) More... | |
edgeMesh (Istream &) | |
Construct from Istream. More... | |
declareRunTimeSelectionTable (autoPtr, edgeMesh, fileExtension,(const fileName &name),(name)) | |
virtual | ~edgeMesh () |
Destructor. More... | |
declareMemberFunctionSelectionTable (void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh),(name, mesh)) | |
void | transfer (edgeMesh &) |
Transfer the contents of the argument and annul the argument. More... | |
bool | read (const fileName &, const word &ext) |
Read from file. Chooses reader based on explicit extension. More... | |
virtual bool | read (const fileName &) |
Read from file. Chooses reader based on detected extension. More... | |
const pointField & | points () const |
Return points. More... | |
const edgeList & | edges () const |
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 | reset (pointField &&points, edgeList &&edges) |
Reset primitive data (points, edges) More... | |
virtual void | scalePoints (const scalar) |
Scale points. A non-positive factor is ignored. More... | |
virtual void | mergeEdges () |
Merge duplicate edges. More... | |
virtual void | writeStats (Ostream &) const |
virtual void | write (const fileName &name) const |
Generic write routine. Chooses writer based on extension. More... | |
void | operator= (const edgeMesh &) |
void | operator= (edgeMesh &&) |
Static Public Member Functions | |
static bool | canRead (const fileName &, const bool verbose=false) |
Can we read this file format? More... | |
static bool | canReadType (const word &ext, const bool verbose=false) |
Can we read this file format? More... | |
static bool | canWriteType (const word &ext, const bool verbose=false) |
Can we write this file format type? More... | |
static wordHashSet | readTypes () |
static wordHashSet | writeTypes () |
static autoPtr< edgeMesh > | New (const fileName &, const word &ext) |
Select constructed from filename (explicit extension) More... | |
static autoPtr< edgeMesh > | New (const fileName &) |
Select constructed from filename (implicit extension) More... | |
static void | write (const fileName &, const edgeMesh &) |
Write to file. More... | |
Static Public Member Functions inherited from edgeMeshFormatsCore | |
static bool | checkSupport (const wordHashSet &available, const word &ext, const bool verbose, const word &functionName) |
... More... | |
Protected Member Functions | |
pointField & | storedPoints () |
Non-const access to global points. More... | |
edgeList & | storedEdges () |
Non-const access to the edges. More... | |
Friends | |
Ostream & | operator<< (Ostream &, const edgeMesh &) |
Istream & | operator>> (Istream &, edgeMesh &) |
Additional Inherited Members | |
Static Public Attributes inherited from edgeMeshFormatsCore | |
static word | nativeExt |
The file extension corresponding to 'native' edge format. More... | |
Static Protected Member Functions inherited from edgeMeshFormatsCore | |
static string | getLineNoComment (IFstream &) |
Read non-comment line. More... | |
Points connected by edges.
Can be read from fileName based on extension. Uses New factory method to select the reader and transfer the result.
Definition at line 69 of file edgeMesh.H.
edgeMesh | ( | ) |
Construct null.
Definition at line 122 of file edgeMesh.C.
Referenced by extendedEdgeMesh::sortPointsAndEdges().
edgeMesh | ( | const pointField & | points, |
const edgeList & | edges | ||
) |
Construct from components.
Definition at line 131 of file edgeMesh.C.
edgeMesh | ( | pointField && | pointLst, |
edgeList && | edgeLst | ||
) |
Construct by transferring components (points, edges).
Definition at line 144 of file edgeMesh.C.
Copy constructor.
Definition at line 42 of file edgeMeshI.H.
Move constructor.
Definition at line 51 of file edgeMeshI.H.
Construct from file name (uses extension to determine type)
Definition at line 46 of file edgeMeshIO.C.
References Foam::name(), and edgeMesh::read().
Construct from file name (uses extension to determine type)
Definition at line 32 of file edgeMeshIO.C.
References Foam::name(), and edgeMesh::read().
|
virtual |
Destructor.
Definition at line 159 of file edgeMesh.C.
|
inlineprotected |
Non-const access to global points.
Definition at line 28 of file edgeMeshI.H.
|
inlineprotected |
Non-const access to the edges.
Definition at line 34 of file edgeMeshI.H.
TypeName | ( | "edgeMesh" | ) |
Runtime type information.
|
static |
Can we read this file format?
Definition at line 88 of file edgeMesh.C.
References Foam::name().
|
static |
Can we read this file format?
Definition at line 56 of file edgeMesh.C.
|
static |
Can we write this file format type?
Definition at line 72 of file edgeMesh.C.
|
static |
Definition at line 42 of file edgeMesh.C.
|
static |
Definition at line 48 of file edgeMesh.C.
declareRunTimeSelectionTable | ( | autoPtr | , |
edgeMesh | , | ||
fileExtension | , | ||
(const fileName &name) | , | ||
(name) | |||
) |
|
static |
Select constructed from filename (explicit extension)
Definition at line 30 of file edgeMeshNew.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::name(), and Foam::nl.
|
static |
Select constructed from filename (implicit extension)
Definition at line 53 of file edgeMeshNew.C.
References Foam::name(), and Foam::New().
declareMemberFunctionSelectionTable | ( | void | , |
edgeMesh | , | ||
write | , | ||
fileExtension | , | ||
(const fileName &name, const edgeMesh &mesh) | , | ||
(name, mesh) | |||
) |
Write to file.
Definition at line 86 of file edgeMeshIO.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, InfoInFunction, Foam::name(), and Foam::nl.
Referenced by edgeMesh::write(), and extendedEdgeMesh::writeObj().
void transfer | ( | edgeMesh & | mesh | ) |
Transfer the contents of the argument and annul the argument.
Definition at line 196 of file edgeMesh.C.
Referenced by extendedEdgeMesh::transfer().
Read from file. Chooses reader based on explicit extension.
Definition at line 74 of file edgeMeshIO.C.
References Foam::name(), and Foam::New().
Referenced by edgeMesh::edgeMesh().
|
virtual |
Read from file. Chooses reader based on detected extension.
Reimplemented in extendedEdgeMeshFormat, extendedEdgeMesh, VTKedgeFormat, STARCDedgeFormat, OBJedgeFormat, NASedgeFormat, extendedFeatureEdgeMeshFormat, and edgeMeshFormat.
Definition at line 58 of file edgeMeshIO.C.
References fileName::ext(), Foam::name(), and Foam::read().
|
inline |
Return points.
Definition at line 62 of file edgeMeshI.H.
Referenced by extendedEdgeMesh::add(), extendedFeatureEdgeMesh::extendedFeatureEdgeMesh(), featureEdgeMesh::featureEdgeMesh(), searchableExtrudedCircle::findParametricNearest(), searchableExtrudedCircle::getNormal(), Foam::operator<<(), refinementFeatures::regionEdgeTrees(), searchableExtrudedCircle::searchableExtrudedCircle(), extendedEdgeMesh::sortPointsAndEdges(), edgeMeshFormat::write(), OBJedgeFormat::write(), STARCDedgeFormat::write(), and VTKedgeFormat::write().
|
inline |
Return edges.
Definition at line 68 of file edgeMeshI.H.
Referenced by extendedEdgeMesh::add(), extendedFeatureEdgeMesh::extendedFeatureEdgeMesh(), featureEdgeMesh::featureEdgeMesh(), searchableExtrudedCircle::findParametricNearest(), searchableExtrudedCircle::getNormal(), Foam::operator<<(), refinementFeatures::regionEdgeTrees(), searchableExtrudedCircle::searchableExtrudedCircle(), edgeMeshFormat::write(), OBJedgeFormat::write(), STARCDedgeFormat::write(), and VTKedgeFormat::write().
|
inline |
Return edges.
Definition at line 74 of file edgeMeshI.H.
Referenced by searchableExtrudedCircle::findParametricNearest(), and extendedEdgeMesh::sortPointsAndEdges().
Foam::label regions | ( | labelList & | edgeRegion | ) | const |
Find connected regions. Set region number per edge.
Returns number of regions.
Definition at line 204 of file edgeMesh.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), Foam::e, forAll, List< T >::setSize(), List< T >::size(), and List< T >::transfer().
|
virtual |
Clear all storage.
Reimplemented in extendedEdgeMesh.
Definition at line 165 of file edgeMesh.C.
Referenced by extendedEdgeMesh::clear().
|
virtual |
Reset primitive data (points, edges)
Note, optimised to avoid overwriting data (with null)
Definition at line 173 of file edgeMesh.C.
References Foam::notNull().
Referenced by extendedEdgeMesh::sortPointsAndEdges().
|
virtual |
Scale points. A non-positive factor is ignored.
Definition at line 269 of file edgeMesh.C.
|
virtual |
Merge duplicate edges.
Definition at line 279 of file edgeMesh.C.
References Foam::e, Foam::endl(), forAll, forAllConstIter, Foam::Info, HashTable< T, Key, Hash >::insert(), and HashTable< T, Key, Hash >::size().
|
virtual |
Reimplemented in extendedEdgeMesh.
Definition at line 117 of file edgeMeshIO.C.
References Foam::endl(), Foam::indent(), Foam::nl, points, and List< T >::size().
Referenced by extendedEdgeMesh::writeStats().
|
inlinevirtual |
Generic write routine. Chooses writer based on extension.
Reimplemented in VTKedgeFormat, STARCDedgeFormat, OBJedgeFormat, and edgeMeshFormat.
Definition at line 260 of file edgeMesh.H.
References Foam::name(), and edgeMesh::write().
|
inline |
Definition at line 86 of file edgeMeshI.H.
References List< T >::clear().
Referenced by extendedEdgeMesh::sortPointsAndEdges().
|
inline |
Definition at line 94 of file edgeMeshI.H.