py_directed_edge_orientations.cpp 415 B

1234567891011121314151617
  1. m.def("directed_edge_orientations", []
  2. (
  3. const Eigen::MatrixXd& C,
  4. const Eigen::MatrixXi& E,
  5. py::list Q
  6. )
  7. {
  8. std::vector<Eigen::Quaterniond, Eigen::aligned_allocator<Eigen::Quaterniond> > Ql;
  9. igl::directed_edge_orientations(C, E, Ql);
  10. for (auto item : Ql) {
  11. py::object obj = py::cast(item);
  12. Q.append(obj);
  13. }
  14. }, __doc_igl_directed_edge_orientations,
  15. py::arg("C"), py::arg("E"), py::arg("Q"));