118 #ifndef Foam_surfaceToCell_H 119 #define Foam_surfaceToCell_H 132 class triSurfaceSearch;
140 public topoSetCellSource
145 static addToUsageTable usage_;
148 const fileName surfName_;
154 const bool includeCut_;
157 const bool includeInside_;
160 const bool includeOutside_;
164 const bool useSurfaceOrientation_;
168 const scalar nearDist_;
172 const scalar curvature_;
175 const refPtr<triSurface> surfPtr_;
178 const refPtr<triSurfaceSearch> querySurfPtr_;
186 static label getNearest
188 const triSurfaceSearch& querySurf,
198 bool differingPointNormals
200 const triSurfaceSearch& querySurf,
203 const label cellTriI,
204 Map<label>& pointToNearest
209 void combine(topoSet&
set,
const bool add)
const;
212 void checkSettings()
const;
214 const triSurfaceSearch& querySurf()
const 216 return *querySurfPtr_;
230 const polyMesh&
mesh,
231 const fileName& surfName,
233 const bool includeCut,
234 const bool includeInside,
235 const bool includeOutside,
236 const bool useSurfaceOrientation,
237 const scalar nearDist,
238 const scalar curvature
249 const bool includeCut,
250 const bool includeInside,
251 const bool includeOutside,
252 const bool useSurfaceOrientation,
253 const scalar nearDist,
254 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.