15 lines
667 B
C++
15 lines
667 B
C++
py::class_<igl::AABB<Eigen::MatrixXd,3> > AABB(m, "AABB");
|
|
|
|
AABB
|
|
.def(py::init<>())
|
|
.def(py::init<const igl::AABB<Eigen::MatrixXd,3>& >())
|
|
.def("init",[](igl::AABB<Eigen::MatrixXd,3>& tree, const Eigen::MatrixXd& V, const Eigen::MatrixXi& Ele)
|
|
{
|
|
return tree.init(V, Ele, Eigen::Matrix<double, Eigen::Dynamic, 3>(), Eigen::Matrix<double, Eigen::Dynamic, 3>(), Eigen::VectorXi(), 0);
|
|
})
|
|
.def("squared_distance", [](const igl::AABB<Eigen::MatrixXd,3>& tree, const Eigen::MatrixXd& V, const Eigen::MatrixXi& Ele, const Eigen::MatrixXd& P, Eigen::MatrixXd& sqrD, Eigen::MatrixXi& I, Eigen::MatrixXd& C)
|
|
{
|
|
return tree.squared_distance(V, Ele, P, sqrD, I, C);
|
|
})
|
|
;
|