118#ifndef surfaceToCell_H
119#define surfaceToCell_H
131class triSurfaceSearch;
139 public topoSetCellSource
144 static addToUsageTable usage_;
147 const fileName surfName_;
153 const bool includeCut_;
156 const bool includeInside_;
159 const bool includeOutside_;
163 const bool useSurfaceOrientation_;
167 const scalar nearDist_;
171 const scalar curvature_;
174 const triSurface* surfPtr_;
177 const triSurfaceSearch* querySurfPtr_;
181 const bool IOwnPtrs_;
189 static label getNearest
191 const triSurfaceSearch& querySurf,
201 bool differingPointNormals
203 const triSurfaceSearch& querySurf,
206 const label cellTriI,
207 Map<label>& pointToNearest
212 void combine(topoSet& set,
const bool add)
const;
215 void checkSettings()
const;
217 const triSurfaceSearch& querySurf()
const
219 return *querySurfPtr_;
233 const polyMesh&
mesh,
234 const fileName& surfName,
236 const bool includeCut,
237 const bool includeInside,
238 const bool includeOutside,
239 const bool useSurfaceOrientation,
240 const scalar nearDist,
241 const scalar curvature
252 const bool includeCut,
253 const bool includeInside,
254 const bool includeOutside,
255 const bool useSurfaceOrientation,
256 const scalar nearDist,
257 const scalar curvature
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A HashTable to objects of type <T> with a label key.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
Mesh consisting of general polyhedral cells.
A topoSetCellSource to select cells based on relation to a surface given by an external file.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
Apply specified action to the topoSet.
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.
virtual ~surfaceToCell()
Destructor.
TypeName("surfaceToCell")
Runtime type information.
The topoSetCellSource is a intermediate class for handling topoSet sources for selecting cells.
Class with constructor to add usage string to table.
setAction
Enumeration defining various actions.
const polyMesh & mesh() const noexcept
Reference to the mesh.
General set of labels of mesh quantity (points, cells, faces).
Helper class to search on triSurface.
Triangulated surface description with patch information.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
vectorField pointField
pointField is a vectorField.
vector point
Point is a vector.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.