@@ -1,13 +1,14 @@
|
||||
// Wrap the BBWData class
|
||||
py::class_<iglData > BBWData(m, "BBWData");
|
||||
py::class_<igl::BBWData > BBWData(m, "BBWData");
|
||||
|
||||
BBWData
|
||||
.def(py::init<>())
|
||||
.def_readwrite("partition_unity", &iglData::partition_unity)
|
||||
.def_readwrite("W0", &iglData::W0)
|
||||
.def_readwrite("active_set_params", &iglData::active_set_params)
|
||||
.def_readwrite("verbosity", &iglData::verbosity)
|
||||
.def("print", [](iglData& data)
|
||||
.def_readwrite("partition_unity", &igl::BBWData::partition_unity)
|
||||
.def_readwrite("W0", &igl::BBWData::W0)
|
||||
.def_readwrite("active_set_params", &igl::BBWData::active_set_params)
|
||||
.def_readwrite("verbosity", &igl::BBWData::verbosity)
|
||||
|
||||
.def("print", [](igl::BBWData& data)
|
||||
{
|
||||
return data.print();
|
||||
})
|
||||
@@ -19,7 +20,7 @@ m.def("bbw", []
|
||||
const Eigen::MatrixXi& Ele,
|
||||
const Eigen::MatrixXi& b,
|
||||
const Eigen::MatrixXd& bc,
|
||||
iglData& data,
|
||||
igl::BBWData& data,
|
||||
Eigen::MatrixXd& W
|
||||
)
|
||||
{
|
||||
@@ -27,6 +28,6 @@ m.def("bbw", []
|
||||
Eigen::VectorXi bv;
|
||||
if (b.size() != 0)
|
||||
bv = b;
|
||||
return igl(V, Ele, bv, bc, data, W);
|
||||
return igl::bbw(V, Ele, bv, bc, data, W);
|
||||
}, __doc_igl_bbw,
|
||||
py::arg("V"), py::arg("Ele"), py::arg("b"), py::arg("bc"), py::arg("data"), py::arg("W"));
|
||||
|
||||
Reference in New Issue
Block a user