74 static const vector splitNormal_;
79 static const scalar distanceTol_;
123 const label startEdgeI,
183 if (!meshPtr_.
valid())
186 <<
"No mesh available. Probably mesh not yet"
207 return featurePoints_;
213 return featureEdges_;
219 return featureToEdge_;
225 return edgeToFeature_;
231 return featureSegments_;
A list of faces which address into the list of points.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set)
A subset of mesh faces organised as a primitive patch.
A class for handling file names.
Mesh consisting of general polyhedral cells.
Cell-face mesh analysis engine.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
void addPatch(const word &patchName)
Add to back of patch list.
void setFeatureEdges(const scalar minCos)
Set featureEdges, edgeToFeature, featureSegments according.
~repatchMesh()
Destructor.
void readTriSurface(const fileName &)
Read from triSurface.
void deletePatch(const word &patchName)
Delete from patch list.
const edgeList & featureEdges() const
Feature edges. Indices into featurePoints.
label findIndex(const word &patchName) const
Get index of patch by name.
ClassName("repatchMesh")
Runtime type information.
const rMesh & mesh() const
Access the boundary mesh.
const labelList & featureToEdge() const
From index into featureEdge to index into meshedges,.
const labelList & meshFace() const
Label of original face in polyMesh (before patchify(...))
labelList getNearest(const primitiveMesh &pMesh, const vector &searchSpan) const
Get rMesh index of nearest face for every boundary face in.
repatchMesh()
Construct null.
const pointField & featurePoints() const
Feature points.
PrimitivePatch< faceList, const pointField > rMesh
Type of the mesh.
void markFaces(const labelList &protectedEdges, const label facei, boolList &visited) const
const labelListList & featureSegments() const
Lists of connected featureEdges. Indices into featureEdges.
void read(const polyMesh &)
Read from repatchMesh of polyMesh.
const labelList & edgeToFeature() const
From edge into featureEdges.
void changePatchType(const word &patchName, const word &type)
Change patch.
label whichPatch(const label facei) const
Get index of patch face is in.
const PtrList< repatchPatch > & patches() const
Access the patches.
void operator=(const repatchMesh &)=delete
Disallow default bitwise assignment.
A class for handling words, derived from string.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManip< error > abort(error &err)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.