Cell analysis class. More...
Public Member Functions | |
cellFeatures (const primitiveMesh &, const scalar minCos, const label celli) | |
Construct from cell in mesh. More... | |
~cellFeatures () | |
Destructor. More... | |
const labelHashSet & | featureEdge () const |
const faceList & | faces () const |
const List< DynamicList< label > > & | faceMap () const |
New to old faceMap. Guaranteed to be shrunk. More... | |
bool | isFeatureEdge (const label edgeI) const |
Is edge a feature edge (uniquely determined since on cell. More... | |
bool | isFeaturePoint (const label edge0, const label edge1) const |
Are two edges connected at feature point? More... | |
bool | isFeatureVertex (const label facei, const label vertI) const |
Is vertexI on facei used by two edges that form feature. More... | |
Cell analysis class.
Constructs feature edges and feature points, which are edges/points with and angle > given specification. Can be asked for 'superFaces' which can be used to see if a cell is a 'splitHex'.
Definition at line 61 of file cellFeatures.H.
cellFeatures | ( | const primitiveMesh & | mesh, |
const scalar | minCos, | ||
const label | celli | ||
) |
Construct from cell in mesh.
Definition at line 376 of file cellFeatures.C.
References primitiveMesh::cellEdges(), forAll, and HashSet< Key, Hash >::insert().
~cellFeatures | ( | ) |
Destructor.
Definition at line 406 of file cellFeatures.C.
References Foam::deleteDemandDrivenData().
|
inline |
Definition at line 134 of file cellFeatures.H.
Referenced by cellFeatures::faceMap().
|
inline |
Definition at line 139 of file cellFeatures.H.
Referenced by topoCellLooper::cut().
|
inline |
New to old faceMap. Guaranteed to be shrunk.
Definition at line 149 of file cellFeatures.H.
References cellFeatures::featureEdge(), HashTable< T, Key, Hash >::found(), cellFeatures::isFeatureEdge(), cellFeatures::isFeaturePoint(), and cellFeatures::isFeatureVertex().
|
inline |
Is edge a feature edge (uniquely determined since on cell.
only two faces sharing edge)
Definition at line 163 of file cellFeatures.H.
Referenced by cellFeatures::faceMap().
Are two edges connected at feature point?
Is local to face since point might be seen as feature point from one face but not from another.
Definition at line 414 of file cellFeatures.C.
References Foam::abort(), primitiveMesh::edges(), edge::end(), Foam::FatalError, FatalErrorInFunction, Foam::mag(), primitiveMesh::nEdges(), primitiveMesh::points(), edge::start(), and edge::vec().
Referenced by cellFeatures::faceMap(), and cellFeatures::isFeatureVertex().
Is vertexI on facei used by two edges that form feature.
point
Definition at line 481 of file cellFeatures.C.
References Foam::abort(), Foam::meshTools::edgeOnFace(), primitiveMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, cellFeatures::isFeaturePoint(), primitiveMesh::nFaces(), primitiveMesh::nPoints(), and primitiveMesh::pointEdges().
Referenced by cellFeatures::faceMap().