Public Member Functions | List of all members
extendedFeatureEdgeMesh Class Reference

extendedEdgeMesh + IO. More...

Inheritance diagram for extendedFeatureEdgeMesh:
Inheritance graph
[legend]
Collaboration diagram for extendedFeatureEdgeMesh:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("extendedFeatureEdgeMesh")
 
 extendedFeatureEdgeMesh (const IOobject &io)
 
 extendedFeatureEdgeMesh (const IOobject &io, const extendedEdgeMesh &)
 
 extendedFeatureEdgeMesh (const surfaceFeatures &sFeat, const objectRegistry &obr, const fileName &sFeatFileName, const boolList &surfBaffleRegions)
 
 extendedFeatureEdgeMesh (const IOobject &io, const PrimitivePatch< faceList, pointField > &surf, const labelUList &featureEdges, const labelUList &regionFeatureEdges, const labelUList &featurePoints)
 
 extendedFeatureEdgeMesh (const IOobject &io, const pointField &pts, const edgeList &eds, label concaveStart, label mixedStart, label nonFeatureStart, label internalStart, label flatStart, label openStart, label multipleStart, const vectorField &normals, const List< sideVolumeType > &normalVolumeTypes, const vectorField &edgeDirections, const labelListList &normalDirections, const labelListList &edgeNormals, const labelListList &featurePointNormals, const labelListList &featurePointEdges, const labelList &regionEdges)
 
virtual ~extendedFeatureEdgeMesh ()=default
 
virtual bool readData (Istream &)
 
virtual bool writeData (Ostream &) const
 
virtual bool global () const
 
virtual fileName filePath () const
 
virtual bool write (const bool valid=true) const
 
- Public Member Functions inherited from regIOobject
 TypeName ("regIOobject")
 
 regIOobject (const IOobject &io, const bool isTimeObject=false)
 
 regIOobject (const regIOobject &rio)
 
 regIOobject (const regIOobject &rio, bool registerCopy)
 
 regIOobject (const word &newName, const regIOobject &, bool registerCopy)
 
 regIOobject (const IOobject &io, const regIOobject &rio)
 
virtual ~regIOobject ()
 
bool checkIn ()
 
bool checkOut ()
 
virtual void addWatch ()
 
bool ownedByRegistry () const
 
bool store ()
 
void release (const bool unregister=false)
 
label eventNo () const
 
label & eventNo ()
 
bool upToDate (const regIOobject &) const
 
bool upToDate (const regIOobject &, const regIOobject &) const
 
bool upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const
 
bool upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const
 
void setUpToDate ()
 
virtual void rename (const word &newName)
 
const dictionaryfindMetaData () const noexcept
 
dictionarygetMetaData () noexcept
 
void removeMetaData ()
 
virtual void updateMetaData ()
 
bool headerOk ()
 
IstreamreadStream (const word &, const bool valid=true)
 
void close ()
 
virtual bool read ()
 
virtual label addWatch (const fileName &)
 
const labelListwatchIndices () const
 
labelListwatchIndices ()
 
virtual bool modified () const
 
virtual bool readIfModified ()
 
virtual bool writeObject (IOstreamOption streamOpt, const bool valid) const
 
virtual bool write (const bool valid=true) const
 
void operator= (const IOobject &io)
 
virtual bool writeObject (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver, IOstreamOption::compressionType comp, const bool valid) const
 
- Public Member Functions inherited from IOobject
 TypeName ("IOobject")
 
 IOobject (const IOobject &)=default
 
virtual ~IOobject ()=default
 
 IOobject (const word &name, const fileName &instance, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 
 IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 
 IOobject (const fileName &path, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 
 IOobject (const IOobject &io, const objectRegistry &registry)
 
 IOobject (const IOobject &io, const word &name)
 
 IOobject (const IOobject &io, readOption, writeOption)
 
autoPtr< IOobjectclone () const
 
autoPtr< IOobjectclone (const objectRegistry &registry) const
 
const objectRegistrydb () const noexcept
 
const Timetime () const
 
const wordname () const noexcept
 
const wordheaderClassName () const noexcept
 
wordheaderClassName () noexcept
 
const stringnote () const noexcept
 
stringnote () noexcept
 
bool registerObject () const noexcept
 
bool registerObject (bool on) noexcept
 
bool globalObject () const noexcept
 
bool globalObject (bool on) noexcept
 
unsigned labelByteSize () const noexcept
 
unsigned scalarByteSize () const noexcept
 
bool isHeaderClassName (const word &clsName) const
 
template<class Type >
bool isHeaderClassName () const
 
readOption readOpt () const noexcept
 
readOption readOpt (readOption opt) noexcept
 
writeOption writeOpt () const noexcept
 
writeOption writeOpt (writeOption opt) noexcept
 
word group () const
 
word member () const
 
const fileNamerootPath () const
 
const fileNamecaseName () const
 
const fileNameinstance () const noexcept
 
fileNameinstance () noexcept
 
const fileNamelocal () const noexcept
 
fileName path () const
 
fileName path (const word &instance, const fileName &local=fileName::null) const
 
fileName objectPath () const
 
fileName objectRelPath () const
 
fileName localFilePath (const word &typeName, const bool search=true) const
 
fileName globalFilePath (const word &typeName, const bool search=true) const
 
IOstreamOption parseHeader (const dictionary &headerDict)
 
bool readHeader (Istream &is)
 
bool readHeader (dictionary &headerDict, Istream &is)
 
template<class Type >
bool typeHeaderOk (const bool checkType=true, const bool search=true, const bool verbose=true)
 
template<class Type >
void warnNoRereading () const
 
bool writeHeader (Ostream &os) const
 
bool writeHeader (Ostream &os, const word &objectType) const
 
void writeHeader (dictionary &dict, IOstreamOption streamOpt) const
 
void writeHeader (dictionary &dict, const word &objectType, IOstreamOption streamOpt) const
 
bool good () const noexcept
 
bool bad () const noexcept
 
InfoProxy< IOobjectinfo () const
 
void operator= (const IOobject &io)
 
readOptionreadOpt () noexcept
 
writeOptionwriteOpt () noexcept
 
boolregisterObject () noexcept
 
boolglobalObject () noexcept
 
template<>
bool isHeaderClassName () const
 
template<class StringType >
Foam::word groupName (StringType base, const word &group)
 
- Public Member Functions inherited from extendedEdgeMesh
 TypeName ("extendedEdgeMesh")
 
 extendedEdgeMesh ()
 
 extendedEdgeMesh (const extendedEdgeMesh &fem)
 
 extendedEdgeMesh (const fileName &name)
 
 extendedEdgeMesh (const fileName &name, const word &fileType)
 
 extendedEdgeMesh (Istream &is)
 
 extendedEdgeMesh (const pointField &points, const edgeList &edges)
 
 extendedEdgeMesh (pointField &&points, edgeList &&edges)
 
 extendedEdgeMesh (const surfaceFeatures &sFeat, const boolList &surfBaffleRegions)
 
 extendedEdgeMesh (const PrimitivePatch< faceList, pointField > &surf, const labelUList &featureEdges, const labelUList &regionFeatureEdges, const labelUList &featurePoints)
 
 extendedEdgeMesh (const pointField &pts, const edgeList &eds, label concaveStart, label mixedStart, label nonFeatureStart, label internalStart, label flatStart, label openStart, label multipleStart, const vectorField &normals, const List< sideVolumeType > &normalVolumeTypes, const vectorField &edgeDirections, const labelListList &normalDirections, const labelListList &edgeNormals, const labelListList &featurePointNormals, const labelListList &featurePointEdges, const labelList &regionEdges)
 
 declareRunTimeSelectionTable (autoPtr, extendedEdgeMesh, fileExtension,(const fileName &name),(name))
 
 ~extendedEdgeMesh ()=default
 
void nearestFeaturePoint (const point &sample, scalar searchDistSqr, pointIndexHit &info) const
 
void nearestFeatureEdge (const point &sample, scalar searchDistSqr, pointIndexHit &info) const
 
void nearestFeatureEdge (const pointField &samples, const scalarField &searchDistSqr, List< pointIndexHit > &info) const
 
void nearestFeatureEdgeByType (const point &sample, const scalarField &searchDistSqr, List< pointIndexHit > &info) const
 
void allNearestFeaturePoints (const point &sample, scalar searchRadiusSqr, List< pointIndexHit > &info) const
 
void allNearestFeatureEdges (const point &sample, const scalar searchRadiusSqr, List< pointIndexHit > &info) const
 
label convexStart () const
 
label concaveStart () const
 
label mixedStart () const
 
label nonFeatureStart () const
 
label externalStart () const
 
label internalStart () const
 
label flatStart () const
 
label openStart () const
 
label multipleStart () const
 
bool featurePoint (label ptI) const
 
const vectorFieldnormals () const
 
const List< sideVolumeType > & normalVolumeTypes () const
 
const vectorFieldedgeDirections () const
 
const labelListListnormalDirections () const
 
vector edgeDirection (label edgeI, label ptI) const
 
const labelListListedgeNormals () const
 
vectorField edgeNormals (const labelList &edgeNormIs) const
 
vectorField edgeNormals (label edgeI) const
 
const labelListListfeaturePointNormals () const
 
vectorField featurePointNormals (label ptI) const
 
const labelListListfeaturePointEdges () const
 
const labelListregionEdges () const
 
pointStatus getPointStatus (label ptI) const
 
edgeStatus getEdgeStatus (label edgeI) const
 
PackedList< 2 > edgeBaffles (label edgeI) const
 
const indexedOctree< treeDataPoint > & pointTree () const
 
const indexedOctree< treeDataEdge > & edgeTree () const
 
const PtrList< indexedOctree< treeDataEdge > > & edgeTreesByType () const
 
void transfer (extendedEdgeMesh &mesh)
 
virtual void clear ()
 
void add (const extendedEdgeMesh &fem)
 
void flipNormals ()
 
void autoMap (const pointField &subPoints, const edgeList &subEdges, const labelList &pointMap, const labelList &edgeMap)
 
void trim (const searchableSurface &surf, const volumeType volType, labelList &pointMap, labelList &edgeMap)
 
void setFromStatus (const List< extendedEdgeMesh::pointStatus > &pointStat, const List< extendedEdgeMesh::edgeStatus > &edgeStat, labelList &sortedToOriginalPoint, labelList &sortedToOriginalEdge)
 
bool mergePointsAndSort (const scalar mergeDist, labelList &pointMap, labelList &edgeMap)
 
bool read (const fileName &name, const word &ext)
 
virtual bool read (const fileName &name)
 
void writeObj (const fileName &prefix) const
 
virtual void writeStats (Ostream &os) const
 
- Public Member Functions inherited from edgeMesh
 edgeMesh (const faMesh &mesh)
 
label size () const
 
const edgeVectorFieldC () const
 
 TypeName ("edgeMesh")
 
 edgeMesh ()
 
 edgeMesh (const edgeMesh &em)
 
 edgeMesh (edgeMesh &&em)
 
 edgeMesh (const pointField &points, const edgeList &edges)
 
 edgeMesh (pointField &&pointLst, edgeList &&edgeLst)
 
 edgeMesh (const fileName &name)
 
 edgeMesh (const fileName &name, const word &fileType)
 
 declareRunTimeSelectionTable (autoPtr, edgeMesh, fileExtension,(const fileName &name),(name))
 
virtual ~edgeMesh ()=default
 
 declareMemberFunctionSelectionTable (void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt, const dictionary &options),(name, mesh, streamOpt, options))
 
void transfer (edgeMesh &mesh)
 
bool read (const fileName &name, const word &fileType)
 
const pointFieldpoints () const noexcept
 
const edgeListedges () const noexcept
 
const labelListListpointEdges () const
 
label regions (labelList &edgeRegion) const
 
virtual void scalePoints (const scalar scaleFactor)
 
virtual void mergePoints (const scalar mergeDist)
 
virtual void mergeEdges ()
 
virtual void write (const fileName &name, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const
 
virtual void write (const fileName &name, const word &fileType, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const
 
void operator= (const edgeMesh &rhs)
 
void operator= (edgeMesh &&rhs)
 
- Public Member Functions inherited from GeoMesh< faMesh >
 GeoMesh (const faMesh &mesh)
 
bool hasDb () const
 
const objectRegistrythisDb () const
 
const faMeshoperator() () const
 

Additional Inherited Members

- Public Types inherited from IOobject
enum  objectState : char { GOOD, BAD }
 
enum  readOption : char { MUST_READ, MUST_READ_IF_MODIFIED, READ_IF_PRESENT, NO_READ }
 
enum  writeOption : char { AUTO_WRITE = 0, NO_WRITE = 1 }
 
enum  fileCheckTypes : char { timeStamp, timeStampMaster, inotify, inotifyMaster }
 
- Public Types inherited from extendedEdgeMesh
enum  pointStatus { CONVEX, CONCAVE, MIXED, NONFEATURE }
 
enum  edgeStatus {
  EXTERNAL, INTERNAL, FLAT, OPEN,
  MULTIPLE, NONE
}
 
enum  sideVolumeType { INSIDE = 0, OUTSIDE = 1, BOTH = 2, NEITHER = 3 }
 
- Public Types inherited from GeoMesh< faMesh >
typedef faMesh Mesh
 
typedef faMesh ::BoundaryMesh BoundaryMesh
 
- Static Public Member Functions inherited from regIOobject
template<class Type >
static Type & store (Type *p)
 
template<class Type >
static Type & store (autoPtr< Type > &ptr)
 
template<class Type >
static Type & store (autoPtr< Type > &&ptr)
 
template<class Type >
static Type & store (refPtr< Type > &ptr)
 
template<class Type >
static Type & store (refPtr< Type > &&ptr)
 
template<class Type >
static Type & store (tmp< Type > &ptr)
 
template<class Type >
static Type & store (tmp< Type > &&ptr)
 
- Static Public Member Functions inherited from IOobject
static bool bannerEnabled () noexcept
 
static bool bannerEnabled (bool on) noexcept
 
static bool fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name)
 
template<class StringType >
static word groupName (StringType base, const word &group)
 
static word group (const word &name)
 
static word member (const word &name)
 
static word scopedName (const std::string &scope, const word &name)
 
static IOobject selectIO (const IOobject &io, const fileName &altFile, const word &ioName="")
 
static OstreamwriteBanner (Ostream &os, const bool noSyntaxHint=false)
 
static OstreamwriteDivider (Ostream &os)
 
static OstreamwriteEndDivider (Ostream &os)
 
- Static Public Member Functions inherited from extendedEdgeMesh
static wordHashSet readTypes ()
 
static wordHashSet writeTypes ()
 
static bool canReadType (const word &fileType, bool verbose=false)
 
static bool canWriteType (const word &fileType, bool verbose=false)
 
static bool canRead (const fileName &name, bool verbose=false)
 
static autoPtr< extendedEdgeMeshNew (const fileName &name, const word &fileType)
 
static autoPtr< extendedEdgeMeshNew (const fileName &name)
 
static edgeStatus classifyEdge (const List< vector > &norms, const labelList &edNorms, const vector &fC0tofC1)
 
static void sortedOrder (const List< extendedEdgeMesh::pointStatus > &pointStat, const List< extendedEdgeMesh::edgeStatus > &edgeStat, labelList &sortedToOriginalPoint, labelList &sortedToOriginalEdge, label &pointConcaveStart, label &pointMixedStart, label &pointNonFeatStart, label &edgeInternalStart, label &edgeFlatStart, label &edgeOpenStart, label &edgeMultipleStart)
 
- Static Public Member Functions inherited from edgeMesh
static label size (const Mesh &mesh)
 
static wordHashSet readTypes ()
 
static wordHashSet writeTypes ()
 
static bool canReadType (const word &fileType, bool verbose=false)
 
static bool canWriteType (const word &fileType, bool verbose=false)
 
static bool canRead (const fileName &name, bool verbose=false)
 
static autoPtr< edgeMeshNew (const fileName &name, const word &fileType)
 
static autoPtr< edgeMeshNew (const fileName &name)
 
static void write (const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null)
 
static void write (const fileName &name, const word &fileType, const edgeMesh &mesh, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null)
 
- Static Public Attributes inherited from IOobject
static const Enum< fileCheckTypesfileCheckTypesNames
 
static char scopeSeparator
 
static fileCheckTypes fileModificationChecking
 
static float fileModificationSkew
 
static int maxFileModificationPolls
 
- Static Public Attributes inherited from extendedEdgeMesh
static const Enum< pointStatuspointStatusNames_
 
static const Enum< edgeStatusedgeStatusNames_
 
static const Enum< sideVolumeTypesideVolumeTypeNames_
 
static scalar cosNormalAngleTol_
 
static constexpr label nPointTypes = 4
 
static constexpr label nEdgeTypes = 5
 
- Protected Member Functions inherited from regIOobject
bool readHeaderOk (const IOstreamOption::streamFormat fmt, const word &typeName)
 
- Protected Member Functions inherited from IOobject
void setBad (const string &s)
 
- Protected Member Functions inherited from extendedEdgeMesh
 extendedEdgeMesh (class one::minus)
 
pointStatus classifyFeaturePoint (label ptI) const
 
void cut (const searchableSurface &, labelList &pMap, labelList &eMap, labelList &pointsFromEdge, labelList &oldEdge, labelList &surfTri)
 
void select (const searchableSurface &surf, const volumeType volType, labelList &pMap, labelList &eMap)
 
template<class Patch >
void sortPointsAndEdges (const Patch &, const labelUList &featureEdges, const labelUList &regionFeatureEdges, const labelUList &feaurePoints)
 
- Protected Member Functions inherited from edgeMesh
pointFieldstoredPoints () noexcept
 
edgeListstoredEdges () noexcept
 
- Static Protected Member Functions inherited from IOobject
static void writeHeaderContent (Ostream &os, const IOobject &io, const word &objectType, const dictionary *metaDataDict=nullptr)
 
static void writeHeaderContent (dictionary &dict, const IOobject &io, const word &objectType, IOstreamOption streamOpt, const dictionary *metaDataDict=nullptr)
 
- Protected Attributes inherited from extendedEdgeMesh
label concaveStart_
 
label mixedStart_
 
label nonFeatureStart_
 
label internalStart_
 
label flatStart_
 
label openStart_
 
label multipleStart_
 
vectorField normals_
 
List< sideVolumeTypenormalVolumeTypes_
 
vectorField edgeDirections_
 
labelListList normalDirections_
 
labelListList edgeNormals_
 
labelListList featurePointNormals_
 
labelListList featurePointEdges_
 
labelList regionEdges_
 
unique_ptr< indexedOctree< treeDataPoint > > pointTree_
 
unique_ptr< indexedOctree< treeDataEdge > > edgeTree_
 
PtrList< indexedOctree< treeDataEdge > > edgeTreesByType_
 
- Protected Attributes inherited from GeoMesh< faMesh >
const faMeshmesh_
 
- Static Protected Attributes inherited from regIOobject
static bool masterOnlyReading = false
 
- Static Protected Attributes inherited from extendedEdgeMesh
static label convexStart_ = 0
 
static label externalStart_ = 0
 

Detailed Description

extendedEdgeMesh + IO.

Source files

Definition at line 52 of file extendedFeatureEdgeMesh.H.

Constructor & Destructor Documentation

◆ extendedFeatureEdgeMesh() [1/5]

extendedFeatureEdgeMesh ( const IOobject io)
explicit

◆ extendedFeatureEdgeMesh() [2/5]

extendedFeatureEdgeMesh ( const IOobject io,
const extendedEdgeMesh em 
)

Definition at line 82 of file extendedFeatureEdgeMesh.C.

◆ extendedFeatureEdgeMesh() [3/5]

extendedFeatureEdgeMesh ( const surfaceFeatures sFeat,
const objectRegistry obr,
const fileName sFeatFileName,
const boolList surfBaffleRegions 
)

Definition at line 93 of file extendedFeatureEdgeMesh.C.

◆ extendedFeatureEdgeMesh() [4/5]

extendedFeatureEdgeMesh ( const IOobject io,
const PrimitivePatch< faceList, pointField > &  surf,
const labelUList featureEdges,
const labelUList regionFeatureEdges,
const labelUList featurePoints 
)

Definition at line 117 of file extendedFeatureEdgeMesh.C.

◆ extendedFeatureEdgeMesh() [5/5]

extendedFeatureEdgeMesh ( const IOobject io,
const pointField pts,
const edgeList eds,
label  concaveStart,
label  mixedStart,
label  nonFeatureStart,
label  internalStart,
label  flatStart,
label  openStart,
label  multipleStart,
const vectorField normals,
const List< sideVolumeType > &  normalVolumeTypes,
const vectorField edgeDirections,
const labelListList normalDirections,
const labelListList edgeNormals,
const labelListList featurePointNormals,
const labelListList featurePointEdges,
const labelList regionEdges 
)

Definition at line 131 of file extendedFeatureEdgeMesh.C.

◆ ~extendedFeatureEdgeMesh()

virtual ~extendedFeatureEdgeMesh ( )
virtualdefault

Member Function Documentation

◆ TypeName()

TypeName ( "extendedFeatureEdgeMesh"  )

◆ readData()

bool readData ( Istream is)
virtual

Reimplemented from regIOobject.

Definition at line 178 of file extendedFeatureEdgeMesh.C.

References IOstream::bad().

Here is the call graph for this function:

◆ writeData()

bool writeData ( Ostream os) const
virtual

Implements regIOobject.

Definition at line 185 of file extendedFeatureEdgeMesh.C.

References IOstream::good(), and os().

Here is the call graph for this function:

◆ global()

virtual bool global ( ) const
inlinevirtual

Reimplemented from regIOobject.

Definition at line 138 of file extendedFeatureEdgeMesh.H.

◆ filePath()

virtual fileName filePath ( ) const
inlinevirtual

Reimplemented from regIOobject.

Definition at line 145 of file extendedFeatureEdgeMesh.H.

References IOobject::globalFilePath(), and Foam::type().

Here is the call graph for this function:

◆ write()

bool write

Definition at line 125 of file regIOobjectWrite.C.


The documentation for this class was generated from the following files: