SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A functor that converts an external data set into a continuous field via radial averaging. More...
#include <RadialAverage.h>
Public Member Functions | |
RadialAverage (ResourcePtr collection, const PointCloud &, double radius, std::function< bool(double)> prefilter=[](double) { return true;}) | |
RadialAverage (const StructuredGrid &, double radius, std::function< bool(double)> prefilter=[](double) { return true;}) | |
double | operator() (std::array< double, 3 > x) const |
A functor that converts an external data set into a continuous field via radial averaging.
Given an external data set of either structured or unstructured data, this functor is a continuous function from R^3->R whose values are computed as the average of the points in the data set within a cylinder of radius radius axis-aligned with the z axis and centered at the input point. Values from the input data set can be masked using the prefilter functor.