Element mesh.
More...
#include <plask/mesh/rectangular_masked2d.hpp>
|
| ElementMesh (const RectangularMaskedMesh2D *originalMesh) |
|
std::size_t | index (std::size_t axis0_index, std::size_t axis1_index) const |
| Calculate this mesh index using indexes of axis0 and axis1.
|
|
bool | prepareInterpolation (const Vec< 2 > &point, Vec< 2 > &wrapped_point, std::size_t &index0_lo, std::size_t &index0_hi, std::size_t &index1_lo, std::size_t &index1_hi, const InterpolationFlags &flags) const |
|
RectangularMaskedMesh2D | toMasked () const |
|
| operator RectangularMaskedMesh2D () const |
|
template<typename RandomAccessContainer > |
auto | interpolateLinear (const RandomAccessContainer &data, const Vec< 2 > &point, const InterpolationFlags &flags) const -> typename std::remove_reference< decltype(data[0])>::type |
| Calculate (using linear interpolation) value of data in point using data in points described by this mesh.
|
|
template<typename RandomAccessContainer > |
auto | interpolateNearestNeighbor (const RandomAccessContainer &data, const Vec< 2 > &point, const InterpolationFlags &flags) const -> typename std::remove_reference< decltype(data[0])>::type |
| Calculate (using nearest neighbor interpolation) value of data in point using data in points described by this mesh.
|
|
Element mesh.
Definition at line 159 of file rectangular_masked2d.hpp.
◆ ElementMesh()
◆ index()
std::size_t plask::RectangularMaskedMesh2D::ElementMesh::index |
( |
std::size_t |
axis0_index, |
|
|
std::size_t |
axis1_index |
|
) |
| const |
|
inline |
Calculate this mesh index using indexes of axis0 and axis1.
- Parameters
-
axis0_index | index of axis0, from 0 to axis[0]->size()-1 |
axis1_index | index of axis1, from 0 to axis[1]->size()-1 |
- Returns
- this mesh index, from 0 to size()-1, or NOT_INCLUDED
Definition at line 169 of file rectangular_masked2d.hpp.
◆ interpolateLinear()
Calculate (using linear interpolation) value of data in point using data in points described by this mesh.
- Parameters
-
data | values of data in points describe by this mesh |
point | point in which value should be calculate |
- Returns
- interpolated value in point
point
Definition at line 196 of file rectangular_masked2d.hpp.
◆ interpolateNearestNeighbor()
Calculate (using nearest neighbor interpolation) value of data in point using data in points described by this mesh.
- Parameters
-
data | values of data in points describe by this mesh |
point | point in which value should be calculate |
- Returns
- interpolated value in point
point
Definition at line 246 of file rectangular_masked2d.hpp.
◆ operator RectangularMaskedMesh2D()
◆ prepareInterpolation()
bool plask::RectangularMaskedMesh2D::ElementMesh::prepareInterpolation |
( |
const Vec< 2 > & |
point, |
|
|
Vec< 2 > & |
wrapped_point, |
|
|
std::size_t & |
index0_lo, |
|
|
std::size_t & |
index0_hi, |
|
|
std::size_t & |
index1_lo, |
|
|
std::size_t & |
index1_hi, |
|
|
const InterpolationFlags & |
flags |
|
) |
| const |
|
inline |
◆ toMasked()
The documentation for this struct was generated from the following file: