13#include <pybind11/eigen.h>
14#include <pybind11/pybind11.h>
15#include <pybind11/stl.h>
33 m.attr(
"__name__") =
"ogs.mesh";
34 m.doc() =
"pybind11 ogs mesh example plugin";
36 pybind11::enum_<MeshLib::MeshItemType>(m,
"MeshItemType")
47 pybind11::class_<OGSMesh>(m,
"OGSMesh")
52 "get names of all data arrays / property "
53 "vectors stored in the mesh")
55 "returns MeshItemType")
57 pybind11::return_value_policy::reference, pybind11::arg(
"name"),
58 pybind11::arg(
"dtype"),
59 "Access a data array / property vector (accesses OGS memory "
60 "directly using numpy array with appropriate shape)");
MeshLib::MeshItemType meshItemType(std::string_view const name) const
std::vector< double > getPointCoordinates() const
pybind11::object dataArray_dispatch(std::string const &name, std::string const &dtype)
std::vector< std::string > getDataArrayNames() const
std::pair< std::vector< int >, std::vector< int > > getCells() const
void initOGSLogger(std::string const &log_level)
PYBIND11_MODULE(OGSMesh, m)
python module name is OpenGeoSys