libigl-python-bindings
libigl-python-bindings copied to clipboard
fit cubic bezier
Add the missing wrapper for igl::fit_cubic_bezier
The libigl function hard codes MatrixXd and doubles. So for now this needs to copy
AFAIK, Eigen's ND array support is still unstable, hence the libigl function outputs a std::vector<> of (same sized) matrices. In numpy, we'd probably rather have an nd array directly. For now, this wrapper matches the c++ output.
Meanwhile, numpyeigen's numpy_hacks_stable fork of pybind11 is spitting out some complaints to cerr. The output looks fine, but it'd be nicer to keep it quiet.
Huh. This is hitting a really strange error. Somehow termios.h system header is being included from the mac36 CI and in there a bunch of macros are #defined including some that clash with a variable name in libigl B0. While we can force a change to libigl to avoid this specific B0 it seems silly. I'd rather figure out why this weird header ended up included. How can we debug this CI?
Should review after https://github.com/libigl/libigl-python-bindings/pull/164/
py36 is too old and will no longer be supported, so if it works on >=3.7 then it should be safe to merge.