18 ERR(
"This functionality is currently only available for 2D meshes.");
25 double const replacement)
27 if (std::abs(value - no_data) < std::numeric_limits<double>::epsilon())
35 double const default_replacement,
36 std::string
const& array_name)
45 std::string
const name =
47 auto vec = props.createNewPropertyVector<
double>(
50 std::transform(nodes.cbegin(), nodes.cend(), std::back_inserter(*vec),
53 return evaluatePixel(raster.getValueAtPoint(*node),
54 no_data, default_replacement);
60 double const default_replacement,
61 std::string
const& array_name)
70 std::string
const name =
72 auto vec = props.createNewPropertyVector<
double>(
75 std::transform(elems.cbegin(), elems.cend(), std::back_inserter(*vec),
78 auto node = getCenterOfGravity(*elem);
79 return evaluatePixel(raster.getValueAtPoint(node),
80 no_data, default_replacement);
void ERR(fmt::format_string< Args... > fmt, Args &&... args)
Class Raster is used for managing raster data.
RasterHeader const & getHeader() const
Returns the complete header information.
std::vector< Node * > const & getNodes() const
Get the nodes-vector for the mesh.
std::vector< Element * > const & getElements() const
Get the element-vector for the mesh.
unsigned getDimension() const
Returns the dimension of the mesh (determined by the maximum dimension over all elements).
Properties & getProperties()
std::string getUniqueName(std::vector< std::string > const &existing_names, std::string const &input_name)
Append '-' and a number such that the name is unique.