36 #ifndef boundaryMesh_H 37 #define boundaryMesh_H 66 static const vector splitNormal_;
71 static const scalar distanceTol_;
122 const label startEdgeI,
131 const label maxDistance,
208 <<
"No mesh available. Probably mesh not yet" 229 return featurePoints_;
235 return featureEdges_;
241 return featureToEdge_;
247 return edgeToFeature_;
253 return featureSegments_;
304 label findPatchID(
const word& patchName)
const;
344 const label startFacei,
354 const label startFacei,
356 const label totalNTris,
367 const label startFacei,
369 const label totalNTris,
void addPatch(const word &patchName)
Add to back of patch list.
const labelList & featureToEdge() const
From index into featureEdge to index into meshedges,.
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 class for handling file names.
const pointField & featurePoints() const
Feature points.
void read(const polyMesh &)
Read from boundaryMesh of polyMesh.
void setFeatureEdges(const scalar minCos)
Set featureEdges, edgeToFeature, featureSegments according.
void markFaces(const labelList &protectedEdges, const label facei, boolList &visited) const
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Cell-face mesh analysis engine.
const edgeList & featureEdges() const
Feature edges. Indices into featurePoints.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface...
~boundaryMesh()
Destructor.
void triangulateLocal(const label startFacei, const label nFaces, const label totalNTris, labelList &triVerts, labelList &localToGlobal) const
Same as triangulate but in local vertex numbering.
scalar distance(const vector &p1, const vector &p2)
wordList patchNames() const
Get names of patches.
void changePatchType(const word &patchName, const word &type)
Change patch.
void deletePatch(const word &patchName)
Delete from patch list.
boundaryMesh()
Construct null.
A list of faces which address into the list of points.
ClassName("boundaryMesh")
Runtime type information.
labelList getNearest(const primitiveMesh &pMesh, const vector &searchSpan) const
Get bMesh index of nearest face for every boundary face in.
void writeTriSurface(const fileName &) const
Write to file.
A class for handling words, derived from string.
const labelList & meshFace() const
Label of original face in polyMesh (before patchify(...))
label getNTris(const label facei) const
Simple triangulation of face subset. Returns number of triangles.
const labelList & extraEdges() const
Indices into edges of additional edges.
const labelListList & featureSegments() const
Lists of connected featureEdges. Indices into featureEdges.
void patchify(const labelList &nearest, const polyBoundaryMesh &oldPatches, polyMesh &newMesh) const
Take over patches onto polyMesh from nearest face in *this.
errorManip< error > abort(error &err)
const bMesh & mesh() const
void triangulate(const label startFacei, const label nFaces, const label totalNTris, labelList &triVerts) const
Simple triangulation of face subset. TotalNTris is total number.
void setExtraEdges(const label edgeI)
Set extraEdges to edges 'near' to edgeI. Uses point-edge walk.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
label getNPoints(const label startFacei, const label nFaces) const
Number of points used in face subset.
void readTriSurface(const fileName &)
Read from triSurface.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Macro definitions for declaring ClassName(), NamespaceName(), etc.
const PtrList< boundaryPatch > & patches() const
Mesh consisting of general polyhedral cells.
A subset of mesh faces organised as a primitive patch.
const labelList & edgeToFeature() const
From edge into featureEdges.
void changeFaces(const labelList &patchIDs, labelList &oldToNew)
Recalculate face ordering and patches. Return old to new.