10 #include <pybind11/pybind11.h>
11 #include <pybind11/numpy.h>
12 #include <boost/shared_ptr.hpp>
20 namespace py = pybind11;
23 PYBIND11_DECLARE_HOLDER_TYPE(T, boost::shared_ptr<T>);
25 void initTrTriangulatorPoints(py::module &m) {
27 py::module modMeshUtils = m.def_submodule(
"TrTriangulatorPoints")
28 .def(
"triangulate", [](py::iterable pts, py::iterable tris, py::iterable tris_adj) -> py::iterable {
33 triangulator.Triangulate();
38 },
"Triangulate the points into a tin.", py::arg(
"pts"),py::arg(
"tris"),py::arg(
"tris_adj")
py::iterable PyIterFromVecInt2d(const VecInt2d &int2d)
py::iterable PyIterFromVecPt3d(const VecPt3d &pts)
py::iterable PyIterFromVecInt(const VecInt &ints, bool numpy)
boost::shared_ptr< VecInt2d > VecInt2dFromPyIter(const py::iterable &int2d)
boost::shared_ptr< VecInt > VecIntFromPyIter(const py::iterable &ints)
boost::shared_ptr< VecPt3d > VecPt3dFromPyIter(const py::iterable &pts)
Class to triangulate simple points.