switched to MatrixXd for all wrappers, updated pybind11

Former-commit-id: 332266c090
This commit is contained in:
Daniele Panozzo
2015-08-29 00:24:41 +02:00
parent 3d31b33ce7
commit ea90d493ec
11 changed files with 418 additions and 250 deletions
+24
View File
@@ -3,6 +3,30 @@
#include <string>
#include <fstream>
void assert_is_VectorXd(const std::string name, const Eigen::MatrixXd& v)
{
if (v.cols() != 1)
throw std::runtime_error(name + " must be a column vector.");
}
void assert_is_RowVectorXd(const std::string name, const Eigen::MatrixXd& v)
{
if (v.rows() != 1)
throw std::runtime_error(name + " must be a row vector.");
}
void assert_is_Vector3d(const std::string name, const Eigen::MatrixXd& v)
{
if ((v.cols() != 1) || (v.rows() != 3))
throw std::runtime_error(name + " must be a column vector with 3 entries.");
}
void assert_is_RowVector3d(const std::string name, const Eigen::MatrixXd& v)
{
if ((v.cols() != 3) || (v.rows() != 1))
throw std::runtime_error(name + " must be a row vector with 3 entries.");
}
extern void python_export_vector(py::module &);
extern void python_export_igl(py::module &);
extern void python_export_igl_viewer(py::module &);