Go to the documentation of this file.
44 #ifndef surfaceToCell_H
45 #define surfaceToCell_H
54 class triSurfaceSearch;
131 const label cellTriI,
161 const bool includeCut,
162 const bool includeInside,
163 const bool includeOutside,
164 const bool useSurfaceOrientation,
165 const scalar nearDist,
166 const scalar curvature
177 const bool includeCut,
178 const bool includeInside,
179 const bool includeOutside,
180 const bool useSurfaceOrientation,
181 const scalar nearDist,
182 const scalar curvature
const triSurfaceSearch * querySurfPtr_
Search engine on surface.
void checkSettings() const
Check values at construction time.
sourceType
Enumeration defining the types of sources.
A class for handling file names.
const scalar nearDist_
If > 0 : include cells with distance from cellCentre to surface.
const bool IOwnPtrs_
Whether I allocated above surface ptrs or whether they are.
static label getNearest(const triSurfaceSearch &querySurf, const label pointI, const point &pt, const vector &searchSpan, Map< label > &cache)
Find index of nearest triangle to point. Returns triangle or -1 if.
Class with constructor to add usage string to table.
void combine(topoSet &set, const bool add) const
Depending on surface add to or delete from cellSet.
TypeName("surfaceToCell")
Runtime type information.
setAction
Enumeration defining the valid actions.
const bool includeCut_
Include cut cells.
const triSurface * surfPtr_
triSurface to search on. On pointer since can be external.
const polyMesh & mesh() const
Helper class to search on triSurface.
Mesh consisting of general polyhedral cells.
bool differingPointNormals(const triSurfaceSearch &querySurf, const vector &span, const label cellI, const label cellTriI, Map< label > &pointToNearest) const
Return true if surface normal of nearest points to vertices on.
const scalar curvature_
If > -1 : include cells with normals at nearest surface points.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
Triangulated surface description with patch information.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
General set of labels of mesh quantity (points, cells, faces).
A topoSetSource to select cells based on relation to surface.
const bool includeInside_
Include inside cells.
A list of keyword definitions, which are a keyword followed by any number of values (e....
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
static addToUsageTable usage_
Add usage string.
Base class of a source for a topoSet.
const bool useSurfaceOrientation_
Determine inside/outside purely using geometric test.
const fileName surfName_
Name of surface file.
virtual sourceType setType() const
const bool includeOutside_
Include outside cells.
surfaceToCell(const polyMesh &mesh, const fileName &surfName, const pointField &outsidePoints, const bool includeCut, const bool includeInside, const bool includeOutside, const bool useSurfaceOrientation, const scalar nearDist, const scalar curvature)
Construct from components.
const pointField outsidePoints_
Points which are outside.
const triSurfaceSearch & querySurf() const
virtual ~surfaceToCell()
Destructor.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const