45 const scalar defaultCellSize
48 scalar minDist = defaultCellSize;
53 hI1 < hitList.
size() - 1;
72 scalar curDist = pHit1.
point().dist(pHit2.
point());
74 minDist =
min(minDist, curDist);
86 const edgeMesh& emesh,
87 const List<pointIndexHit>& hitList,
88 const scalar defaultCellSize
91 scalar minDist = defaultCellSize;
96 hI1 < hitList.size() - 1;
104 const edge& e1 = emesh.edges()[pHit1.index()];
109 hI2 < hitList.size();
117 const edge& e2 = emesh.edges()[pHit2.index()];
120 if (!e1.connected(e2))
122 scalar curDist = pHit1.point().dist(pHit2.point());
124 minDist =
min(minDist, curDist);
143 const scalar searchDistance
149 Info<<
"Extracting proximity of close feature points and " 150 <<
"edges to the surface" <<
endl;
157 const scalar radiusSqr =
min 192 const word& basename,
193 const extendedEdgeMesh& emesh,
194 const triSurface& surf,
195 const scalar searchDistance
198 Info<<
nl <<
"Extracting curvature of surface at the points." 202 tmp<scalarField> tfld =
210 basename +
".featureProximity",
void size(const label n)
Older name for setAddressableSize.
A triangle primitive used to calculate face normals and swept volumes. Uses referred points...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
constexpr char nl
The newline '\n' character (0x0a)
Description of feature edges and points.
Ostream & endl(Ostream &os)
Add newline and flush stream.
PointIndexHit< point > pointIndexHit
A PointIndexHit with a 3D point.
This class describes the interaction of an object (often a face) and a point. It carries the info of ...
static scalar calcProximityOfFeaturePoints(const List< pointIndexHit > &hitList, const scalar defaultCellSize)
#define forAll(list, i)
Loop across all elements in list.
const point_type & point() const noexcept
Return point, no checks.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const Field< point_type > & points() const noexcept
Return reference to global points.
scalar circumRadius() const
Return circum-radius.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
Point circumCentre() const
Return circum-centre.
bool hit() const noexcept
Is there a hit?
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
scalar calcProximityOfFeatureEdges(const edgeMesh &emesh, const List< pointIndexHit > &hitList, const scalar defaultCellSize)
messageStream Info
Information stream (stdout output on master, null elsewhere)
void allNearestFeatureEdges(const point &sample, const scalar searchRadiusSqr, List< pointIndexHit > &info) const
Find all the feature edges within searchDistSqr of sample.
A class for managing temporary objects.
Triangulated surface description with patch information.
Foam::DimensionedField< scalar, triSurfaceGeoMesh > triSurfaceScalarField
void allNearestFeaturePoints(const point &sample, scalar searchRadiusSqr, List< pointIndexHit > &info) const
Find all the feature points within searchDistSqr of sample.