Go to the documentation of this file.
35 #ifndef treeDataTriSurface_H
36 #define treeDataTriSurface_H
38 #include "triSurface.H"
134 scalar& nearestDistSqr,
ClassName("treeDataTriSurface")
label getVolumeType(const indexedOctree< treeDataTriSurface > &, const point &) const
Get type (inside, outside, mixed, unknown) of point.
pointField points() const
Get representative point cloud for all shapes inside.
Encapsulates data for (indexedOc)tree searches on triSurface.
Standard boundBox + extra functionality for use in octree.
static scalar nearestCoords(const point &base, const point &E0, const point &E1, const scalar a, const scalar b, const scalar c, const point &P, scalar &s, scalar &t)
fast triangle nearest point calculation. Returns point in E0, E1
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Pre-declare SubField and related Field type.
Triangulated surface description with patch information.
Non-pointer based hierarchical recursive searching.
const triSurface & surface() const
const triSurface & surface_
void findNearest(const labelList &indices, const point &sample, scalar &nearestDistSqr, label &nearestIndex, point &nearestPoint) const
Calculates nearest (to sample) point in shape.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
treeDataPrimitivePatch< triSurface > treeDataTriSurface
treeDataTriSurface(const triSurface &)
Construct from triSurface. Holds reference.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool overlaps(const label index, const treeBoundBox &sampleBb) const
Does (bb of) shape at index overlap bb.
bool intersects(const label index, const point &start, const point &end, point &result) const
Calculate intersection of triangle with ray. Sets result.
const dimensionedScalar c
Speed of light in a vacuum.
bool ln(const fileName &src, const fileName &dst)
Create a softlink. dst should not exist. Returns true if successful.
void size(const label)
Override size to be inconsistent with allocated storage.