OGS
OGSMesh.h
Go to the documentation of this file.
1
12#include <algorithm>
13#include <pybind11/pybind11.h>
14
15#include <string>
16#include <utility>
17#include <vector>
18
19namespace MeshLib
20{
21class Mesh;
22}
23
24// Needs to be exported, see
25// https://pybind11.readthedocs.io/en/stable/advanced/misc.html#partitioning-code-over-multiple-extension-modules
26class PYBIND11_EXPORT OGSMesh
27{
28public:
29 explicit OGSMesh(MeshLib::Mesh& mesh);
30
31 std::vector<double> getPointCoordinates() const;
32 void setPointDataArray(std::string const& name,
33 std::vector<double> const& values,
34 std::size_t const number_of_components);
35 std::vector<double> getPointDataArray(
36 std::string const& name,
37 std::size_t const number_of_components = 1) const;
38 std::pair<std::vector<int>, std::vector<int>> getCells() const;
39 void setCellDataArray(std::string const& name,
40 std::vector<double> const& values,
41 std::size_t const number_of_components);
42 std::vector<double> getCellDataArray(
43 std::string const& name, std::size_t const number_of_components) const;
44
45private:
47};
MeshLib::Mesh & _mesh
Definition OGSMesh.h:46