4#include <pybind11/eigen.h>
5#include <pybind11/pybind11.h>
6#include <pybind11/stl.h>
24 m.attr(
"__name__") =
"ogs.mesh";
25 m.doc() =
"pybind11 ogs mesh example plugin";
27 pybind11::enum_<MeshLib::MeshItemType>(m,
"MeshItemType")
38 pybind11::class_<OGSMesh>(m,
"OGSMesh")
43 "get names of all data arrays / property "
44 "vectors stored in the mesh")
46 "returns MeshItemType")
48 pybind11::return_value_policy::reference, pybind11::arg(
"name"),
49 pybind11::arg(
"dtype"),
50 "Access a data array / property vector (accesses OGS memory "
51 "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