Go to the documentation of this file.
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
vectorField pointField
pointField is a vectorField.
void set(List< bool > &bools, const labelRange &range)
A class for handling file names.
TypeName("surfaceToCell")
Helper class to search on triSurface.
Mesh consisting of general polyhedral cells.
Generic templated 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 topoSetCellSource to select cells based on relation to a surface given by an external file.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Vector< scalar > vector
A scalar version of the templated Vector.
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)
The topoSetCellSource is a intermediate class for handling topoSet sources for selecting cells.
const polyMesh & mesh() const noexcept
vector point
Point is a vector.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const