118 #ifndef surfaceToCell_H 119 #define surfaceToCell_H 131 class 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
A class for handling file names.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
Apply specified action to the topoSet.
virtual ~surfaceToCell()
Destructor.
Helper class to search on triSurface.
TypeName("surfaceToCell")
Runtime type information.
vectorField pointField
pointField is a vectorField.
const polyMesh & mesh() const noexcept
Reference to the mesh.
setAction
Enumeration defining various actions.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
General set of labels of mesh quantity (points, cells, faces).
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.
vector point
Point is a vector.
Mesh consisting of general polyhedral cells.
Triangulated surface description with patch information.