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