
#include <pybind11/pybind11.h>#include <pybind11/stl.h>#include "PyLNLib.h"namespace py = pybind11;void construct(py::module_ &);PYBIND11_MODULE(PyLNLib, m){ construct(m);}void construct(py::module_&m){ cstrUV(m);}
#include <pybind11/pybind11.h>#include "Constants.h"#include "UV.h"namespace py = pybind11;void cstrUV(py::module_&m){ py::class_<LNLib::UV>(m, "UV") .def(py::init<>()) .def(py::init<double, double>()) .def("SetU", &LNLib::UV::SetU) .def("GetU", &LNLib::UV::GetU)}


转载请注明来源本文地址:https://www.tuituisoft/blog/96069.html