45 void Foam::triSurfaceMeshPointSet::calcSamples
47 DynamicList<point>& samplingPts,
48 DynamicList<label>& samplingCells,
49 DynamicList<label>& samplingFaces,
50 DynamicList<label>& samplingSegments,
51 DynamicList<scalar>& samplingCurveDist
54 forAll(sampleCoords_, sampleI)
56 label celli = searchEngine().
findCell(sampleCoords_[sampleI]);
60 samplingPts.append(sampleCoords_[sampleI]);
61 samplingCells.append(celli);
62 samplingFaces.append(-1);
63 samplingSegments.append(0);
64 samplingCurveDist.append(1.0 * sampleI);
70 void Foam::triSurfaceMeshPointSet::genSamples()
73 DynamicList<point> samplingPts;
74 DynamicList<label> samplingCells;
75 DynamicList<label> samplingFaces;
76 DynamicList<label> samplingSegments;
77 DynamicList<scalar> samplingCurveDist;
89 samplingCells.shrink();
90 samplingFaces.shrink();
91 samplingSegments.shrink();
92 samplingCurveDist.shrink();
116 surface_(dict.
lookup(
"surface"))
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search...
#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.
A list of keyword definitions, which are a keyword followed by any number of values (e...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual tmp< pointField > points() const
Get the points that define the surface.
void size(const label)
Override size to be inconsistent with allocated storage.
bool foundObject(const word &name) const
Is the named Type found?
virtual ~triSurfaceMeshPointSet()
Destructor.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
Macros for easy insertion into run-time selection tables.
virtual point getRefPoint(const List< point > &) const
Get reference point.
IOoject and searching on triSurface.
Holds list of sampling points which is filled at construction time. Various implementations of this b...
label findCell(const point &location, const label seedCelli=-1, const bool useTreeSearch=true) const
Find cell containing location.
A class for handling words, derived from string.
triSurfaceMeshPointSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict)
Construct from dictionary.
const word & constant() const
Return constant name.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const Time & time() const
Return time.
defineTypeNameAndDebug(combustionModel, 0)
Mesh consisting of general polyhedral cells.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.