Element mesh.
More...
#include <plask/mesh/rectangular_masked3d.hpp>
|
| ElementMesh (const RectangularMaskedMesh3D *originalMesh) |
|
RectangularMaskedMesh3D | toMasked () const |
|
| operator RectangularMaskedMesh3D () const |
|
std::size_t | index (std::size_t axis0_index, std::size_t axis1_index, std::size_t axis2_index) const |
| Calculate this mesh index using indexes of axis0 and axis1.
|
|
bool | prepareInterpolation (const Vec< 3 > &point, Vec< 3 > &wrapped_point, std::size_t &index0_lo, std::size_t &index0_hi, std::size_t &index1_lo, std::size_t &index1_hi, std::size_t &index2_lo, std::size_t &index2_hi, const InterpolationFlags &flags) const |
|
template<typename RandomAccessContainer > |
auto | interpolateLinear (const RandomAccessContainer &data, const Vec< 3 > &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< 3 > &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 238 of file rectangular_masked3d.hpp.
◆ ElementMesh()
◆ index()
std::size_t plask::RectangularMaskedMesh3D::ElementMesh::index |
( |
std::size_t |
axis0_index, |
|
|
std::size_t |
axis1_index, |
|
|
std::size_t |
axis2_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 |
axis2_index | index of axis1, from 0 to axis[2]->size()-1 |
- Returns
- this mesh index, from 0 to size()-1, or NOT_INCLUDED
Definition at line 259 of file rectangular_masked3d.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 278 of file rectangular_masked3d.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 344 of file rectangular_masked3d.hpp.
◆ operator RectangularMaskedMesh3D()
◆ prepareInterpolation()
bool plask::RectangularMaskedMesh3D::ElementMesh::prepareInterpolation |
( |
const Vec< 3 > & |
point, |
|
|
Vec< 3 > & |
wrapped_point, |
|
|
std::size_t & |
index0_lo, |
|
|
std::size_t & |
index0_hi, |
|
|
std::size_t & |
index1_lo, |
|
|
std::size_t & |
index1_hi, |
|
|
std::size_t & |
index2_lo, |
|
|
std::size_t & |
index2_hi, |
|
|
const InterpolationFlags & |
flags |
|
) |
| const |
|
inline |
◆ toMasked()
The documentation for this struct was generated from the following file: