Go to the documentation of this file.
47 void Foam::triSurfaceMeshPointSet::calcSamples
49 DynamicList<point>& samplingPts,
50 DynamicList<label>& samplingCells,
51 DynamicList<label>& samplingFaces,
52 DynamicList<label>& samplingSegments,
53 DynamicList<scalar>& samplingCurveDist
56 forAll(sampleCoords_, sampleI)
62 samplingPts.append(sampleCoords_[sampleI]);
63 samplingCells.append(celli);
64 samplingFaces.append(-1);
65 samplingSegments.append(0);
66 samplingCurveDist.append(1.0 * sampleI);
72 void Foam::triSurfaceMeshPointSet::genSamples()
75 DynamicList<point> samplingPts;
76 DynamicList<label> samplingCells;
77 DynamicList<label> samplingFaces;
78 DynamicList<label> samplingSegments;
79 DynamicList<scalar> samplingCurveDist;
91 samplingCells.shrink();
92 samplingFaces.shrink();
93 samplingSegments.shrink();
94 samplingCurveDist.shrink();
99 std::move(samplingPts),
100 std::move(samplingCells),
101 std::move(samplingFaces),
102 std::move(samplingSegments),
103 std::move(samplingCurveDist)
int debug
Static debugging option.
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Holds list of sampling points which is filled at construction time. Various implementations of this b...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
static constexpr const zero Zero
Global zero.
const meshSearch & searchEngine() const
triSurfaceMeshPointSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict)
Construct from dictionary.
IOoject and searching on triSurface.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
virtual point getRefPoint(const List< point > &pts) const
Get reference point.
label findCell(const point &location, const label seedCelli=-1, const bool useTreeSearch=true) const
Find cell containing location.
bool foundObject(const word &name, const bool recursive=false) const
Is the named Type found?
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
const Type & lookupObject(const word &name, const bool recursive=false) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
virtual tmp< pointField > points() const
Get the points that define the surface.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
const Time & time() const
Return the top-level database.
const word & constant() const
Return constant name.
defineTypeNameAndDebug(combustionModel, 0)