14#include <pybind11/eigen.h>
15#include <pybind11/pybind11.h>
16#include <pybind11/stl.h>
17#include <spdlog/spdlog.h>
20#include <range/v3/numeric.hpp>
21#include <range/v3/range/conversion.hpp>
22#include <range/v3/view/enumerate.hpp>
23#include <range/v3/view/indirect.hpp>
24#include <range/v3/view/map.hpp>
25#include <range/v3/view/transform.hpp>
36 m.attr(
"__name__") =
"ogs.mesh";
37 m.doc() =
"pybind11 ogs mesh example plugin";
38 pybind11::class_<OGSMesh>(m,
"OGSMesh")
40 "get node coordinates")
42 pybind11::return_value_policy::copy,
"get cells")
void setPointDataArray(std::string const &name, std::vector< double > const &values, std::size_t const number_of_components)
std::vector< double > getPointDataArray(std::string const &name, std::size_t const number_of_components=1) const
void setCellDataArray(std::string const &name, std::vector< double > const &values, std::size_t const number_of_components)
std::vector< double > getPointCoordinates() const
std::pair< std::vector< int >, std::vector< int > > getCells() const
std::vector< double > getCellDataArray(std::string const &name, std::size_t const number_of_components) const
PYBIND11_MODULE(mesh, m)
python module name is OpenGeoSys