Go to the documentation of this file.
38 #ifndef boundaryMesh_H
39 #define boundaryMesh_H
68 static const vector splitNormal_;
73 static const scalar distanceTol_;
125 const label startEdgeI,
134 const label maxDistance,
211 <<
"No mesh available. Probably mesh not yet"
232 return featurePoints_;
238 return featureEdges_;
244 return featureToEdge_;
250 return edgeToFeature_;
256 return featureSegments_;
307 label findPatchID(
const word& patchName)
const;
347 const label startFacei,
357 const label startFacei,
359 const label totalNTris,
370 const label startFacei,
372 const label totalNTris,
const bMesh & mesh() const
ClassName("boundaryMesh")
Runtime type information.
boundaryMesh()
Construct null.
A class for handling words, derived from Foam::string.
const labelListList & featureSegments() const
Lists of connected featureEdges. Indices into featureEdges.
A class for handling file names.
~boundaryMesh()
Destructor.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
void triangulate(const label startFacei, const label nFaces, const label totalNTris, labelList &triVerts) const
Simple triangulation of face subset. TotalNTris is total number.
label getNTris(const label facei) const
Simple triangulation of face subset. Returns number of triangles.
const PtrList< boundaryPatch > & patches() const
const labelList & extraEdges() const
Indices into edges of additional edges.
void triangulateLocal(const label startFacei, const label nFaces, const label totalNTris, labelList &triVerts, labelList &localToGlobal) const
Same as triangulate but in local vertex numbering.
wordList patchNames() const
Get names of patches.
const edgeList & featureEdges() const
Feature edges. Indices into featurePoints.
Mesh consisting of general polyhedral cells.
const labelList & meshFace() const
Label of original face in polyMesh (before patchify(...))
void changeFaces(const labelList &patchIDs, labelList &oldToNew)
Recalculate face ordering and patches. Return old to new.
label getNPoints(const label startFacei, const label nFaces) const
Number of points used in face subset.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A subset of mesh faces organised as a primitive patch.
void writeTriSurface(const fileName &) const
Write to file.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
void addPatch(const word &patchName)
Add to back of patch list.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
void read(const polyMesh &)
Read from boundaryMesh of polyMesh.
void markFaces(const labelList &protectedEdges, const label facei, boolList &visited) const
const labelList & featureToEdge() const
From index into featureEdge to index into meshedges,.
errorManip< error > abort(error &err)
void readTriSurface(const fileName &)
Read from triSurface.
scalar distance(const vector &p1, const vector &p2)
labelList getNearest(const primitiveMesh &pMesh, const vector &searchSpan) const
Get bMesh index of nearest face for every boundary face in.
void setFeatureEdges(const scalar minCos)
Set featureEdges, edgeToFeature, featureSegments according.
const pointField & featurePoints() const
Feature points.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void patchify(const labelList &nearest, const polyBoundaryMesh &oldPatches, polyMesh &newMesh) const
Take over patches onto polyMesh from nearest face in *this.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
void setExtraEdges(const label edgeI)
Set extraEdges to edges 'near' to edgeI. Uses point-edge walk.
const labelList & edgeToFeature() const
From edge into featureEdges.
void deletePatch(const word &patchName)
Delete from patch list.
void changePatchType(const word &patchName, const word &type)
Change patch.
A list of faces which address into the list of points.
Cell-face mesh analysis engine.