Go to the documentation of this file.
34 #ifndef linearDistance_H
35 #define linearDistance_H
85 const scalar& defaultCellSize,
Abstract base class for specifying target cell sizes.
virtual bool cellSize(const point &pt, scalar &size) const
Modify scalar argument to the cell size specified by function.
scalar distance_
Distance from the surface to control over.
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
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.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
TypeName("linearDistance")
Runtime type information.
virtual bool sizeLocations(const pointIndexHit &hitPt, const vector &n, pointField &shapePts, scalarField &shapeSizes) const
A list of keyword definitions, which are a keyword followed by any number of values (e....
scalar distanceSqr_
Distance squared.
scalar sizeFunction(const point &pt, scalar d, label index) const
Calculate the cell size as a function of the given distance.
virtual bool setCellSize(const pointField &pts)
Adapt local cell size. Return true if anything changed.
scalar distanceCellSize_
Cell size at distance_ from the surface.
virtual ~linearDistance()
Destructor.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
linearDistance(const dictionary &initialPointsDict, const searchableSurface &surface, const scalar &defaultCellSize, const labelList regionIndices)
Construct from components.