Updated tutorial 404 to use features of newer pybind11 version,
Introduced typedefs
This commit is contained in:
@@ -3,15 +3,10 @@ m.def("directed_edge_orientations", []
|
||||
(
|
||||
const Eigen::MatrixXd& C,
|
||||
const Eigen::MatrixXi& E,
|
||||
py::list Q
|
||||
RotationList& Q
|
||||
)
|
||||
{
|
||||
std::vector<Eigen::Quaterniond, Eigen::aligned_allocator<Eigen::Quaterniond> > Ql;
|
||||
igl::directed_edge_orientations(C, E, Ql);
|
||||
for (auto item : Ql) {
|
||||
py::object obj = py::cast(item);
|
||||
Q.append(obj);
|
||||
}
|
||||
return igl::directed_edge_orientations(C, E, Q);
|
||||
}, __doc_igl_directed_edge_orientations,
|
||||
py::arg("C"), py::arg("E"), py::arg("Q"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user