feat(python): added python bindings

This commit is contained in:
2026-07-01 11:14:12 -04:00
parent 37416adb03
commit 39e5117a24
40 changed files with 2434 additions and 99 deletions

View File

@@ -0,0 +1,14 @@
#include <pybind11/pybind11.h>
#include "bindings.h"
#include "stroid/exceptions/exceptions.h"
namespace py = pybind11;
void register_exceptions_bindings(py::module_& m) {
py::register_exception<stroid::exceptions::StroidError>(m, "StroidError");
py::register_exception<stroid::exceptions::StroidContinuityError>(m, "StroidContinuityError", m.attr("StroidError"));
py::register_exception<stroid::exceptions::StroidMeshError>(m, "StroidMeshError", m.attr("StroidError"));
py::register_exception<stroid::exceptions::StroidMissingReferenceMesh>(m, "StroidMissingReferenceMesh", m.attr("StroidMeshError"));
}