48 void Foam::triSurfaceMeshPointSet::calcSamples
50 DynamicList<point>& samplingPts,
51 DynamicList<label>& samplingCells,
52 DynamicList<label>& samplingFaces,
53 DynamicList<label>& samplingSegments,
54 DynamicList<scalar>& samplingCurveDist
57 forAll(sampleCoords_, sampleI)
63 samplingPts.append(sampleCoords_[sampleI]);
64 samplingCells.append(celli);
65 samplingFaces.append(-1);
66 samplingSegments.append(0);
67 samplingCurveDist.append(1.0 * sampleI);
73 void Foam::triSurfaceMeshPointSet::genSamples()
76 DynamicList<point> samplingPts;
77 DynamicList<label> samplingCells;
78 DynamicList<label> samplingFaces;
79 DynamicList<label> samplingSegments;
80 DynamicList<scalar> samplingCurveDist;
92 samplingCells.shrink();
93 samplingFaces.shrink();
94 samplingSegments.shrink();
95 samplingCurveDist.shrink();
100 std::move(samplingPts),
101 std::move(samplingCells),
102 std::move(samplingFaces),
103 std::move(samplingSegments),
104 std::move(samplingCurveDist)
119 const polyMesh&
mesh,
120 const meshSearch& searchEngine,
121 const dictionary&
dict 125 surfaceName_(
dict.
get<word>(
"surface"))
129 const auto* surfPtr =
136 sampleCoords_ = surfPtr->points();
140 sampleCoords_ = triSurface
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
void size(const label n)
Older name for setAddressableSize.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
T & first()
Access first element of the list, position [0].
Ignore writing from objectRegistry::writeObject()
const Type * cfindObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
label findCell(const point &location, const label seedCelli=-1, const bool useTreeSearch=true) const
Find cell containing location.
const Time & time() const noexcept
Return time registry.
triSurfaceMeshPointSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict)
Construct from dictionary.
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
virtual point getRefPoint(const List< point > &pts) const
Get reference point.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
const word & constant() const noexcept
Return constant name.
const polyMesh & mesh() const noexcept
int debug
Static debugging option.
defineTypeNameAndDebug(combustionModel, 0)
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
messageStream Info
Information stream (stdout output on master, null elsewhere)
const meshSearch & searchEngine() const noexcept
static constexpr const zero Zero
Global zero (0)